Second while loop not running. Why?

后端 未结 6 1911
没有蜡笔的小新
没有蜡笔的小新 2021-01-15 11:37

I have two while loops running one after the other (not inside of each other) - I\'ve simplified the code a bit so that only the important parts of it are listed below. The

6条回答
  •  情书的邮戳
    2021-01-15 11:50

    After the first while() loop completes, the internal pointer in the MySQL result is at the end of itself. You need to tell it to go back to the beginning using mysql_data_seek() between the first and second loops:

    mysql_data_seek($result_work_id, 0);
    

提交回复
热议问题