Second while loop not running. Why?

后端 未结 6 1910
没有蜡笔的小新
没有蜡笔的小新 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条回答
  •  猫巷女王i
    2021-01-15 11:45

    You've already looped through the result rows, so it's at the end and returns FALSE. (That's why it exited the loop the first time.)

    To reset the internal pointer to the beginning of the result set, use mysql_data_seek().

    mysql_data_seek($result_work_id, 0);
    

提交回复
热议问题