athena26 Posted May 28, 2021 Posted May 28, 2021 Willing to pay 20$ for a better jail.php layout and hospital layout for mccodes V2. Quote
athena26 Posted May 30, 2021 Author Posted May 30, 2021 <br /><br /> <hr width='75%' /> <div style='text-align:center;'> <h4>Mobster of the hour</h4> <table width='75%' class='table' style='text-align:center;' align='center'> <tr> <th>User</th> <th>Kills</th> </tr>"; $check = $db->query('SELECT userid, username, kills FROM users ORDER BY kills DESC LIMIT 1'); if (!$db->num_rows($check)) { echo "<tr><td colspan='2'>There are no users yet!</td></tr>"; } while ($user = $db->fetch_row($check)) { echo " <tr> <td><a href='viewuser.php?u=".$user['userid']."'>".$user['username']."</a></td> <td>".money_formatter($user['kills'], '')."</td> </tr>"; } echo " </table> </div> <hr width='75%' /><br /><br /> Can someone help me with this code when I try add it in explore before <? I get a error Quote
Sim Posted May 31, 2021 Posted May 31, 2021 No ending ': in last line Comma and semicolon Edit: If adding before the ?> <br /><br /> <hr width='75%' /> <div style='text-align:center;'> <h4>Mobster of the hour</h4> <table width='75%' class='table' style='text-align:center;' align='center'> <tr> <th>User</th> <th>Kills</th> </tr> <? $check = $db->query('SELECT userid, username, kills FROM users ORDER BY kills DESC LIMIT 1'); if (!$db->num_rows($check)) { echo "<tr><td colspan='2'>There are no users yet!</td></tr>"; } while ($user = $db->fetch_row($check)) { echo " <tr> <td><a href='viewuser.php?u=".$user['userid']."'>".$user['username']."</a></td> <td>".money_formatter($user['kills'], '')."</td> </tr>"; } echo " </table> </div> <hr width='75%' /><br /><br />"; ?> Not sure if it will work since $db class is called and don't think it's loaded prior 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.