}
else
{
---
that should have been if ($num == 0) .
Notice the two = (==).
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]
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
Ok. I have it changed, but I have something wrong here, because when I
there result is 0, it doesn't print out the message that I want. If I
have it print out the result, it says 0. It has to be something simple,
but I can't see what is wrong.
if ($num = 0)
{
echo "There are no matches f
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 mysql_fet
4 matches
Mail list logo