PHP 4.0 Bug #1939 Updated: I can't get result of ifx_num_rows
| From: | Bug Database | Date: | Sun, 01 Aug 1999 20:29:37 +0000 |
| Subject: | PHP 4.0 Bug #1939 Updated: I can't get result of ifx_num_rows | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9436@lists.php.net to get a copy of this message | ||
ID: 1939
Updated by: danny
Reported By: musica98@chollian.net
Status: Closed
Bug Type: Other
Assigned To:
Comments:
As the manual states, ifx_num_rows returns the number of rows fetched so far.
You have not fetched any rows yet for this query, so ifx_num_rows returns 0.
You should use ifx_affected_rows() instead.
But beware: Informix only returns an "estimate" of the number of rows selected,
it can be wildly inaccurate.
You only get the exact number of rows for update/delete statements.
This too is stated clearly in the manual.
Danny.
---
Full Bug description available at: http://bugs.php.net/version4/?id=1939