#27057 [NEW]: Clarification about mysql_data_seek
| From: | andrey@php.net | Date: | Tue, 27 Jan 2004 14:35:21 +0000 |
| Subject: | #27057 [NEW]: Clarification about mysql_data_seek | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969358480@lists.php.net to get a copy of this message | ||
From: andrey@php.net
Operating system: all
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Clarification about mysql_data_seek
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 bug report at http://bugs.php.net/?id=27057&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27057&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27057&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27057&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27057&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27057&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27057&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27057&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27057&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27057&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27057&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27057&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27057&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27057&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27057&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27057&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27057&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27057&r=float