13.05.2012, 14:04
Add this to your script:
Now everytime before you call a quary execute this.
Код:
CheckMySQL() { if(mysql_ping() == -1) mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS); }