I am fairly new to programming and got stuck in this infinite while loop when I am trying to show the results of the sql query in an order.
I have the entries ordered by date and time inside mySQL table.
When I display the results it does show up in the right order but I wanted to have a counter and display that result in order 1,2,3..etc.
Right now I am showing the EventIDs in the html table straight from mySQL variable "EVENTID" from table 'eventtable'.
That displays the EVENTIDs which are of course not necessarily in order.
So I tried a while loop but it seems like I can not escape out from the first row of what mysqli_fetch_array() returns.
Any help/suggestions will be greatly appreciated.