How to reset mysql pointer back to the first row in PHP?
while($row = mysql_fetch_array($result)){ echo $row['id'];}
If I use the above code two times consecutively, th开发者_StackOverflowe row does not get printed twice.
How to reset it?
use mysql_data_seek. This function will allow you to move the internal result pointer.
精彩评论