$guests = $db->query("SELECT FROM `online_guests` WHERE `time` > '".(TIME - 300)."'"
;
$users = $db->query("SELECT FROM `user` WHERE `lvisit` > '".(TIME - 360)."'"
;
$on_us = $users->num_rows;
$on_g = $guests->num_rows;
Notice: Trying to get property of non-object in /var/www/wor647/data/www/s.ru/inc/foot.php on line 4 Notice: Trying to get property of non-object in /var/www/wor647/data/www/s.ru/inc/foot.php on line 5
В чем проблема?