Hey guys, I have this mess of a PHP, and I am trying to get rank 6 and up to have a badge next to them.
What I need help with is trying to get the <?php if($staff) ?> into the <div id=\"staff_username\">
Thanks in advance!
==============EDIT=============
screenshot to help
PHP:
<?php
$querylist = mysql_query("SELECT * FROM users WHERE online = '1' ORDER BY id ASC");
while($row = mysql_fetch_array($querylist))
{
echo "<div id=\"StaffBox\"><div id=\"StaffBox\">";
echo "<img src=\"http://habbo.nl/habbo-imaging/avatarimage?figure=";
echo $row['look'];
echo "\"style=\"float:left\"/>";
echo "<div id=\"staff_online\">";
if($row['online'] == 0){
}
else{
echo "<div id=\"online\"></div>";
echo "</br>";
}
echo "</div><div id=\"staff_username\">";
echo "Username: ";
$username = $row['username'];
echo ucwords($username);
echo "</div>";
echo "Motto: ";
echo $row['motto'];
echo "</br>";
echo "<img src=\"app/tpl/skins/Habbo/images/vip.gif\">";
echo "</div><br><br><br><br><hr>";
}
?>
<?php
$Staff = mysql_query("SELECT * FROM users WHERE rank > '6' ORDER BY id DESC");
if ($Staff)
{
echo "<img src=\"app/tpl/skins/Habbo/images/UVIP.gif\">";
}
else
{
echo "";
}
?>
Thanks in advance!
==============EDIT=============
You must be registered for see links
screenshot to help