";
if($linfo[laddername]){
//CATEGORYS
$getladdercats=mysql_query("SELECT id,ruletitle FROM rules WHERE ladderon='$ladderid' ORDER by ruletitle");
while(list($id,$rule)=mysql_fetch_row($getladdercats)){
$thiscategory=$thiscategory."$out[bulletleft] $rule ";
}
$out[body]=$out[body]."
$tablehead
$tablefoot";
}else{
//GAMES
$getgames=mysql_query("SELECT id,gamename FROM games WHERE status='1' ORDER by gamename");
while(list($gid,$gamename)=mysql_fetch_row($getgames)){
$thisladder=$thisladder."+ $gamename ";
//LADDERS
$getladders=mysql_query("SELECT id,laddername FROM ladders WHERE gameon='$gid' ORDER by laddername");
while(list($lid,$laddername)=mysql_fetch_row($getladders)){
$thisladder=$thisladder."$out[bulletleft] $laddername ";
}
}
$out[body]=$out[body]."
$tablehead
$site[shortname] Ladder Rules
$thisladder |
$tablefoot";
}
$out[body]=$out[body]."
|
|
";
if($linfo[laddername]){
//
// *NEW* RULE CATEGORIES == ADDED TEXT TO MAKE A SENTENCE MAKE SENSE. ==
//
$getladdercats=mysql_query("SELECT id,ruletitle,rulebody,DATE_FORMAT(lastedit, '%M %d, %l:%i %p') FROM rules WHERE ladderon='$ladderid' ORDER by ruletitle");
while(list($id,$rule,$rulebody,$lastedit)=mysql_fetch_row($getladdercats)){
$out[body]=$out[body]."
$tablehead
$rule
$rulebodyLast Updated $lastedit |
$tablefoot
";
}
}else{
$out[body]=$out[body]."
$tablehead
General $site[shortname] Rules
Select a ladder on the left to view their respective rules. |
$tablefoot";
}
$out[body]=$out[body]." |