I've got a bunch of MySQLi code, can someone transfer these lines to mysql so I can learn to do the rest
Thanks
Code:
$GetRooms = $engine->query("SELECT `users_now`,`caption` FROM `rooms` WHERE `users_now` > 0 ORDER BY `users_now` DESC LIMIT 10");
$odd = false;
while ($Room = $GetRooms->fetch_object()) {
$bgColor = $Room->users_now >= 20 ? "#C1322B" : $Room->users_now >= 10 ? "#ffb01a" : "#62b061";
echo '
<div style="padding:0 8px 0 6px">
<div class="navi-box '. (++$count%2 ? "odd" : "even") .'">
<div class="users-now" style="background-color: '.$bgColor.'">
<font class="users-number"><center><b>'.filter($Room->users_now).'</b></center></font></div><div class="room-name">'.filter($Room->caption).'