Re: [PHP] Check to see if mysql_fetch_array result is empty

2003-03-12 Thread Mike Tuller
Tuller [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 11:17 AM To: php mailing list list Subject: [PHP] Check to see if mysql_fetch_array result is empty How can I check to see if a mysql_fetch_array is empty. I have a search page, and want to have it so that when there are no matches, it

RE: [PHP] Check to see if mysql_fetch_array result is empty

2003-03-12 Thread Michael Roger C. Bianan
Thanks, Miches:) -Original Message- From: Mike Tuller [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 12:43 PM To: [EMAIL PROTECTED] Cc: php mailing list list Subject: Re: [PHP] Check to see if mysql_fetch_array result is empty Ok. I have it changed, but I have something wron

Re: [PHP] Check to see if mysql_fetch_array result is empty

2003-03-12 Thread Mike Tuller
st Subject: [PHP] Check to see if mysql_fetch_array result is empty How can I check to see if a mysql_fetch_array is empty. I have a search page, and want to have it so that when there are no matches, it returns a message saying that there were no matches, and if there are, then display them. Here

RE: [PHP] Check to see if mysql_fetch_array result is empty

2003-03-12 Thread Michael Roger C. Bianan
Mike, Use mysql_num_rows($db_query) ; - returns no of rows in the result set. - if none, returns 0. Thanks, Miches -Original Message- From: Mike Tuller [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 11:17 AM To: php mailing list list Subject: [PHP] Check to see if

[PHP] Check to see if mysql_fetch_array result is empty

2003-03-12 Thread Mike Tuller
How can I check to see if a mysql_fetch_array is empty. I have a search page, and want to have it so that when there are no matches, it returns a message saying that there were no matches, and if there are, then display them. Here is what I have so far to give you an idea as to what I am tr