这是您可以执行的操作:
$result = mysql_query();while($row = mysql_fetch_assoc($result)){ // do whatever here...}// set the pointer back to the beginningmysql_data_seek($result, 0);while($row = mysql_fetch_assoc($result)){ // do whatever here...}但是,我不得不说,这似乎不是解决此问题的正确方法。为什么不在第一个循环中进行处理?



