oops!! used the code tag wrongly!! sorry.
andrew13d 0 Newbie Poster
Recommended Answers
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.
Jump to PostI am recommending it because he is using fetch array before while loop, and then the program comes to loop and encounters the fetch array again and moves to next index in array. that's why if he is using fetch array before loop he should use do while.
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.