so which one should I use?
Edit:----
PHP Code:
<?php
if (mysql_num_rows($userInfo) > 0)
{
$x = 1;
while ($staff = mysql_fetch_assoc($userInfo))
{
$bans = mysql_num_rows(mysql_query("SELECT * FROM `bans` WHERE `added_by` = '" . $staff['username'] . "'"));
$cfh = mysql_num_rows(mysql_query("SELECT * FROM moderation_tickets WHERE moderator_id = '" . $staff['id'] . "'"));
if ($x == 2)
$x = 1;
else
$x = 2;
{
echo '{userrname} has banned <strong>' . filter($bans) . '</strong> users and handled <strong>' .filter($cfh) .'</strong> call for help tickets.';
}
}
}
?>
Doesn't work, its not even showing the words; It's just showing blank space haha get it Taylor Swift :P
EDIT 2:
I got little bits and pieces to work now I need to get it to hand each users ticket and handle
PHP Code:
<?php
$getUserInfo = mysql_query("SELECT * FROM `users` WHERE rank >=4 LIMIT 5");
while ($userInfo= mysql_fetch_assoc($getUserInfo))
{
echo '
<div style="padding:5px;">
<strong><a href="https://playboon.co/home/">' .$userInfo['username'] . '</a></strong> has banned <strong></strong> users and handled <strong>1</strong> call for help tickets.
<br/>
<hr>';
}
Images: