#27057 [Opn->Csd]: Clarification about mysql_data_seek
| From: | nlopess@php.net | Date: | Tue, 27 Jan 2004 18:13:16 +0000 |
| Subject: | #27057 [Opn->Csd]: Clarification about mysql_data_seek | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969358486@lists.php.net to get a copy of this message | ||
ID: 27057
Updated by: nlopess@php.net
Reported By: andrey@php.net
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: all
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2004-01-27 09:35:21] andrey@php.net
Description:
------------
The documentation of mysql_data_seek() reads :
===
Row_number starts at 0. The row_number should be a value in the range
from 0 to mysql_num_rows - 1.
===
However if the result set has returned 0 rows, a seek 0 will fail with
an E_WARNING and FALSE returned. So, the documentation should read like
:
===
Row_number starts at 0. The row_number should be a value in the range
from 0 to mysql_num_rows - 1. However if the result set is empty
(mysql_num_rows == 0) a seek to 0 will fail with an warning and false
will be returned from the function.
===
Andrey
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27057&edit=1