[mysql]
<?php
$result = mysql_query("SELECT * FROM `grpgusers` WHERE `city = $user_class->city` ORDER BY `exp` DESC LIMIT 5");
while($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
$user_online = new User($line['id']);
echo "<div>".$user_online->id.".)".$user_online->formattedname."</div>";
}
?>
[/mysql]
i dont understand why this wont work :(