athena26 Posted May 28, 2021 Share Posted May 28, 2021 Willing to pay 20$ for a better jail.php layout and hospital layout for mccodes V2. Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted May 28, 2021 Share Posted May 28, 2021 What are you actually looking for? Quote Link to comment Share on other sites More sharing options...
athena26 Posted May 29, 2021 Author Share Posted May 29, 2021 I've sent you a private message . Quote Link to comment Share on other sites More sharing options...
athena26 Posted May 30, 2021 Author Share 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 Link to comment Share on other sites More sharing options...
Sim Posted May 31, 2021 Share 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 Link to comment Share on other sites More sharing options...
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.