RE: [PHP] Row Count
| From: | Jay Blanchard | Date: | Tue, 10 Jun 2008 14:39:39 +0000 |
| Subject: | RE: [PHP] Row Count | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275184@lists.php.net to get a copy of this message | ||
[snip]
On Tue, Jun 10, 2008 at 10:18 AM, Jay Blanchard <jblanchard@pocket.com>
wrote:
>
> http://www.php.net/mysql_num_rows
That would be just peachy if it worked on his Informix database,
Jay. ;-P
[/snip]
OK, OK...so I read it through too quickly!
Then I would suggest a second query to count the rows. ifx_affected_rows
cannot be relied on for accurate counts in SELECT queries, it is on
accurate for INSERT, UPDATE, and DELETE statements.
ifx_num_rows may be soon to be an included function.