Skip to content
Advertisement

php loop problems

noob problem: i have some issues with a loop in php…here is the code (i used the same methodology for other pages and it works); the code it is supposed to display the names of the products from a order, it works, but it is not showing the very first product , i don’t know why :

JavaScript

and here is the code where i used mysqli_fetch_array before the loop

JavaScript

Does anyone have any idea how should i modify this code? Thank you!

Advertisement

Answer

JavaScript

remove this line, so that, it will not read the 1st result at starting. Now, when you use it in the while loop, it reads the first line

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement