masterofollies
07-26-2008, 02:08 AM
Can someone tell me why both of these won't run on the same page? It only displays the second one.
function cheatlog()
{
$numbers = "50000000";
$page = '<center><p><b><u>If any users are listed below, it means they have cheats on their account.<br>Contact an administrator right away.</u></b><br /><br />';
$page .= '<hr>Number Cheat<hr><table width="50%">';
$result = doquery("SELECT number FROM {{table}} WHERE number > '$numbers' ORDER BY username", 'regusers');
$page .= '<tr><td><b>User Name</b></td><td><b>Number</b></td></tr>';
while($row = mysql_fetch_array($result))
{
$page .= "<tr><td>".$row["username"]."</td><td>".$row["number"]."</td></tr>";
}
$page .= '</table></center>';
$points = "5000";
$page = '<center><p><br /><br />';
$page .= '<hr>Points Cheat<hr><table width="50%">';
$ptsresult = doquery("SELECT points FROM {{table}} WHERE points > '$points' || maxpoints > '$points' ORDER BY username", 'regusers');
$page .= '<tr><td><b>User Name</b></td><td><b>Current Points</b></td><td><b>Maximum Points</b></td></tr>';
while($ptsrow = mysql_fetch_array($ptsresult))
{
$page .= "<tr><td>".$ptsrow["username"]."</td><td>".$ptsrow["points"]."</td><td>".$ptsrow["maxpoints"]."</td></tr>";
}
$page .= '</table></center>';
display($mainpage, 'Cheat Log');
}
function cheatlog()
{
$numbers = "50000000";
$page = '<center><p><b><u>If any users are listed below, it means they have cheats on their account.<br>Contact an administrator right away.</u></b><br /><br />';
$page .= '<hr>Number Cheat<hr><table width="50%">';
$result = doquery("SELECT number FROM {{table}} WHERE number > '$numbers' ORDER BY username", 'regusers');
$page .= '<tr><td><b>User Name</b></td><td><b>Number</b></td></tr>';
while($row = mysql_fetch_array($result))
{
$page .= "<tr><td>".$row["username"]."</td><td>".$row["number"]."</td></tr>";
}
$page .= '</table></center>';
$points = "5000";
$page = '<center><p><br /><br />';
$page .= '<hr>Points Cheat<hr><table width="50%">';
$ptsresult = doquery("SELECT points FROM {{table}} WHERE points > '$points' || maxpoints > '$points' ORDER BY username", 'regusers');
$page .= '<tr><td><b>User Name</b></td><td><b>Current Points</b></td><td><b>Maximum Points</b></td></tr>';
while($ptsrow = mysql_fetch_array($ptsresult))
{
$page .= "<tr><td>".$ptsrow["username"]."</td><td>".$ptsrow["points"]."</td><td>".$ptsrow["maxpoints"]."</td></tr>";
}
$page .= '</table></center>';
display($mainpage, 'Cheat Log');
}