andrew13d
0
Newbie Poster
Recommended Answers
Jump to PostIt appears that you've included $truedata = mysql_fetch_array() twice but not used it the first time (thus the probable cause of the loss of your first row).
Try it now and let me know if that was it ...
<?php mysql_connect("localhost","root","password") or die(mysql_error()); mysql_select("database") or die(mysql_error()); …
Jump to Postyes...
remove the line: $truedata = mysql_fetch_array()
Jump to PostInstead of while use a do while loop it will automatically fix the problem.
And also remember it is a good practice to use do while when displaying data from database.
All 9 Replies
andrew13d
0
Newbie Poster
langsor
Shanti C
106
Posting Virtuoso
architact
25
Junior Poster
langsor
architact
25
Junior Poster
langsor
andrew13d
0
Newbie Poster
langsor
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.