$result = dbquery(
"SELECT ton.*, tu.user_id,user_name FROM ".$db_prefix."online ton
LEFT JOIN ".$db_prefix."users tu ON ton.online_user=tu.user_id"
);
$guests = 0; $members = 0;
while ($data = dbarray($result)) {
if ($data['online_user'] == "0") {
$guests++;
} else {
$members ++;
}
print "$members($guests)";
}