Hi all, could someone help me? I'm looking for one quick answer. I've code like this
$result = mysql_query("SELECT .... FROM ..."); $rows = mysql_fetch_array($result); Problem is, when the result have no rows. I receive an error message from MySQL on the second line, which is OK. My question is: Is there a better solution than put a line like If (mysql_num_rows($result)>0) ... Could I solve it differently? Thanks Karel --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php