Re: mysql_num_rows dos not work
| From: | Mark A Mucha | Date: | Sun, 02 Jul 2000 17:09:52 +0000 |
| Subject: | Re: mysql_num_rows dos not work | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-4371@lists.php.net to get a copy of this message | ||
Make sure you have granted yourself permission to use this database, That
was the problem I had. You will have to use a user name to log in at a
minimum. :O)
Thanks
MArk
----- Original Message -----
From: "Benton Jackson" <goatrider@goatrider.com>
To: "Sayyid Kamyar Izadi" <kizadi@rahnema.com>; <php-general@lists.php.net>
Sent: Sunday, July 02, 2000 11:16 AM
Subject: RE: [PHP] mysql_num_rows dos not work
> This usually means there was an error in your query. Do a mysql_error()
> and/or mysql_errno() after your query and see what it says.
>
> > From: Sayyid Kamyar Izadi [mailto:kizadi@rahnema.com]
> >
> > Dear Sir/Madam
> > I am using PHP4.0.
> > I have a problem:
> > I do not know how can i get the number of rows in query result.
> > When i use mysql_num_rows($result) whic $result comes from a
> > mysql_db_query a Warning comes that say :
> > <<Supplied argument is not a valid MySQL result resource>>
> > Can you help me how to use mysql functions to get correct results.
> >
> > Thanks.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>