php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #27057 Clarification about mysql_data_seek
Submitted: 2004-01-27 09:35 UTC Modified: 2004-01-27 13:13 UTC
From: andrey@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
 [2004-01-27 09:35 UTC] 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



Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-01-27 13:13 UTC] nlopess@php.net
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.
 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=b5ce30b0952d761c7a8f3e51be194fc743daa4ab
Log: fix #27057
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Aug 07 20:01:29 2024 UTC