Re: Re: Searching...
| From: | Jason Wong | Date: | Fri, 19 Jul 2002 07:53:46 +0000 |
| Subject: | Re: Re: Searching... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108461@lists.php.net to get a copy of this message | ||
On Friday 19 July 2002 14:08, David Robley wrote:
> You might consider running the first query just to get a COUNT(), rather
> than extracting all the resulting rows and using mysql_numrows to
> determine how many were returned
Am I missing something? If you do a COUNT() in the query then, in general,
it'll only return 1 row. You then use this row to determine the result of the
COUNT(). IE using mysql_numrows() on this result is inappropriate.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Keep up the good work! But please don't ask me to help.
*/