php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23352 mysql_fetch_row starts with row 2 instead of row 1
Submitted: 2003-04-25 16:06 UTC Modified: 2003-05-05 06:41 UTC
Votes:2
Avg. Score:4.0 ± 1.0
Reproduced:1 of 2 (50.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: coolaboy113 at aol dot com Assigned:
Status: No Feedback Package: MySQL related
PHP Version: 5CVS-2003-04-25 (dev) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
47 - 19 = ?
Subscribe to this entry?

 
 [2003-04-25 16:06 UTC] coolaboy113 at aol dot com
#display results 
while($i = mysql_fetch_row($result)) { 
echo $i[0]; 
}

If you use this script.  On my version it will display but it will start with the rowset of 2.  So anything in row 1 doesn't show up. Weird.  I also have no other scripts like this one so i know its not a conflict with anything else in my page.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-25 16:56 UTC] sniper@php.net
What's the exact version of PHP in phpinfo() ?

 [2003-04-25 23:26 UTC] coolaboy113 at aol dot com
4.1.2-7.3.6 is my version number
 [2003-04-26 13:04 UTC] georg@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


Pleae provide a short reproducable testcase, including

a CREATE TABLE STATEMENT
an INSERT STATEMENT

and a small script.

 [2003-05-05 06:41 UTC] georg@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 28 18:04:14 2021 UTC