So basically I have the following loop to iterate database rows:
while($row = $mysql->fetch_assoc())
But I need to access the rows before this loop as well. So, I do this:
$inside = $mysql->fetch_assoc()
and $mysql loses its rows. When it gets to the while loop it simply does not enter it as the condition becomes NULL.
I tried the following
while($row = $inside)
but this just waits until timeout (loops indefinitely).
Any idea on how I could perform this, making up for the requirements above? Thank you very much for your help...