"retrieve all row but the first record is missing" Code Answer


in your code, you're calling $row = $result->fetch_assoc(); just before starting your while loop. this line is "consuming" your first raw and when you're entering in the loop, you move the cursor to the second row by calling this same method a second time.

the condition of the while loop is executed before the content, here you'll find more info about php while loop

to fix your code, remove this first line.

By DerekG on January 26 2022

Answers related to “retrieve all row but the first record is missing”

Only authorized users can answer the Search term. Please sign in first, or register a free account.