开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜