If mysql connection failed try other connection?
#2

yes,
in MYSQL when you cant connect to the server/database it will return a connection handler which is 0 for Blug's.
But yes with that u can check if it's connected or not

soo.
pawn Code:
new mysql = mysql_connect("127.0.0.1","root","mydatabase","mypass");
if(mysql==0) return print("MySQL Connection not established!");
Reply


Messages In This Thread
If mysql connection failed try other connection? - by Admigo - 25.03.2013, 16:43
Re: If mysql connection failed try other connection? - by park4bmx - 25.03.2013, 16:50
Re: If mysql connection failed try other connection? - by reckst4r - 25.03.2013, 16:53
Re: If mysql connection failed try other connection? - by InfiniTy. - 25.03.2013, 16:54

Forum Jump:


Users browsing this thread: 1 Guest(s)