My site was running fine until i switched hosts now its displaying [code]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/vhosts/www.nowiby.com/templates/topnav.php on line 12 Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/vhosts/www.nowiby.com/templates/topnav.php on line 17 query failed : select count(*) as online from login_online where status=1 and last_visit > subdate(now(), Interval 30 MINUTE) order by last_visit desc[/code] Here is line 12 and 17 [code] Line 12 $countnew = mysql_num_rows(mysql_query("select * from members where adv_approved=0")); Line 17 $result = mysql_query("select adv_picture,adv_approved,adv_rejectreason,adv_picture2,adv_picture3,adv_picture4,adv_picture5,adv_picture6,adv_picture7,suspend from members where mem_userid='$Sess_UserId'"); $pic = mysql_fetch_row($result); [/code] Please help