if (mysql_num_rows($result)!="")
if($result!=""){ if (mysql_num_rows($result)) // bu kodun devamını getir ... //ilk if deyimimdeki parantezi kapat