Sort:   date:   year:
\n".$request); $indiv = false; while($row=mysql_fetch_object($result)) { // are sorted by category? if ($order_by == $ORDER_BY_CAT) { $this_cat = $row->cat_name; if ($this_cat != $previous_cat) { echo "\n
\n

" . $row->cat_name; echo "

\n"; } $previous_cat = $this_cat; } $postdata = get_postdata2($row->ID); $thismonth=mysql2date("Y\-m", $postdata['Date']); $linkmonth=mysql2date('Ym', $postdata['Date']); $i = '/'.$thismonth.'/'; // don't do monthly stuff if we're doing by category/title if (($order_by != $ORDER_BY_CAT) && ($order_by != $ORDER_BY_TITLE)) { if ($thismonth != $previousmonth) { // change month? if (preg_match($i,$postdata['Date'])) { echo "\n

"; echo $month[substr($thismonth,5,2)]; echo '

'; } } $previousmonth = $thismonth; } //$postdata = get_postdata2($row->ID); $userinfo = get_userdata ($postdata['Author_ID']); echo $row->formatted_date; echo " - ID.'&c=1">'; if ($postdata['Title']) { $postdata['Title'] = stripslashes($postdata['Title']); echo $postdata['Title']; } else { echo $postdata['ID']; } echo "
\n"; } ?>