RE: [PHP] Num rows error
| From: | Joao Prado Maia | Date: | Tue, 10 Oct 2000 23:15:30 +0000 |
| Subject: | RE: [PHP] Num rows error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-19440@lists.php.net to get a copy of this message | ||
On Wed, 11 Oct 2000, Jason Murray wrote:
> > the problem seems to be with the Query
> >
> > I tested the query and it is unable to perform
>
> Ah, next pitfall then - you should check that the $query
> variable has something in it before you perform a numrows
> on it. :)
>
> Jason
Also, are you sure the username / password combination you used on your
mysql_connect() line has the permissions to select stuff from the
database.
Aside from this possibility, the only other problem that I can see is if
the $email string has quotes inside it. By the way, are you sure there is
something in the database for what you are testing ?
Joao
--
Joao Prado Maia
Web Developer
Kefta, Inc.
T: (415) 391-6881 ext 8008
F: (415) 391-7079