You have to either read all the rows or call mysql_free_result() before you can perform another query.
因為你要麼把所有行都讀走,或是你要在進行下一次的查詢前調用 mysql_free_result() 清除結果。