... mysql_query("select count(*) as anz from v3chat_room_users where status ='Login' limit 1"); if ($anz > 0) ....