I'm experiencing a strange behaviour of a php script which uses mysql. My server is a cpanel apache 1.3 php 5.2.6 and mysql 5.
While looping in a cycle which makes an xml call and stores the data in the database the same query is first correctly performed and the second time it goes through the loop it seems like it looses the connection and it gives this error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in..
I'm sure the query is correct and that during the first loop it works correctly!
By echoin mysql_error The outpout is "MySQL server has gone away";
This is happening on a php script which was perfectly running a few days ago.
Does anybody have an idea of what's going on?
Has there been any update that can cause this behaviour?
Any help is appreciated