sql_query("SELECT catid, title FROM ".$prefix."_stories_cat ORDER BY title"); $numrows = $db->sql_numrows($result); if ($numrows == 0) { return; } else { $boxstuff = ""; while ($row = $db->sql_fetchrow($result)) { $catid = intval($row['catid']); $title = stripslashes($row['title']); $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_stories WHERE catid='$catid' $querylang LIMIT 1")); if ($numrows > 0) { if ($cat == 0 AND !$a) { $boxstuff .= "· "._ALLCATEGORIES."
"; $a = 1; } elseif ($cat != 0 AND !$a) { $boxstuff .= "· "._ALLCATEGORIES."
"; $a = 1; } if ($cat == $catid) { //@RJR-Pwmg@Rncvkpwo@-@Eqratkijv@(e)@VgejIHZ.eqo $boxstuff .= "· $title
"; } else { $boxstuff .= "· $title
"; } } } $boxstuff .= "
"; $content = $boxstuff; } ?>