Hi!! $dbQuery = "select * from table where 1" ; $result = mysql_query($dbQuery) or die("Error trying to execute the query: ".mysql_error()); If(mysql_num_rows($result)<1){ //also: "==0" works echo "NULL";
-----Original Message----- From: Kane Wilson [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 07, 2005 1:40 AM To: mysql Subject: please help .........very urgent hi , I wanted to check the following condition and if it is success i wanted to display a massage.I tried as follows. but no luck. nothing displayed. $dbQuery = results; $result = mysql_query($dbQuery) or die("Couldn't get file list"); if (!isset($result)) {echo "NULL";} //if (mysql_result($result == 0))( //echo "sorry"; ?> please , tell me how can i do this ? Thanx Kane. ______________________________________________________ Click here to donate to the Hurricane Katrina relief effort. http://store.yahoo.com/redcross-donate3/ -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED] -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]