"; ?> query("SELECT * FROM ".$chatprefix."chatrooms"); while ($db->next_record()) { $room = $db->record[name]; $db2->query("SELECT * FROM ".$chatprefix."chatusers WHERE room='$room' AND active='1'"); if(eregi("sep_",$room)) { $room='Sepraum'; } $num = $db2->num_rows(); if($num > 0) { echo "$sinside $room:
\n"; while($db2->next_record()) { $username=$db2->record[nick]; echo "$username,
"; } echo " \n"; } else { echo "$sinside $room:
\n"; echo "niemand
"; } echo " \n"; } ?>