Posts: 2,536
Location: Western Maryland
|
XeqtR,
Don't call mysql_free_result() inside your loop. This will free the mysql resource on the first iteration. It should be AFTER your while loop. Also, I don't recommend putting an "or die" clause on a while loop. Eventually all the records will be iterated and you're going to hit that die clause -- die clauses are intended for error detection.
But to answer your question, if you are calling mysql_free_result() inside your while loop, then you are sabotaging any subsequent iterations because it will fail.
What I don't understand is how it is properly updating ANY records beyond the first one.
__________________
—Kyrnt
|