[Help] Mysql Registration
#4

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


Messages In This Thread
[Help] Mysql Registration - by Minko - 13.05.2012, 13:13
Re: [Help] Mysql Registration - by Pinguinn - 13.05.2012, 13:35
Re: [Help] Mysql Registration - by Minko - 13.05.2012, 13:58
Re: [Help] Mysql Registration - by WackoX - 13.05.2012, 14:04
Re: [Help] Mysql Registration - by Minko - 13.05.2012, 14:14

Forum Jump:


Users browsing this thread: 3 Guest(s)