You should have replaced the old while-part:
PHP Code:
<?php
error_reporting(7);
require("./global.php");
if (isset($action)==0) {
$action="view_categories";
}
// ###################### View the rankset categories #######################
if ($action=="view_categories") {
// Lets query the database:
$rankset_db=$DB_site->query("SELECT cat_id, cat_name, cat_creator, cat_description, cat_ranks FROM rankcategories WHERE cat_id IN (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19) ORDER BY cat_name ASC");
unset($output_cats);
while ($rankset_db2=$DB_site->fetch_array($rankset_db)) {
eval ('$output_cats .= "'.gettemplate("display_ranks_bit").'";');
}
dooutput($output_cats);
}
?>
I hope, it works then.