25.03.2013, 16:50
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.
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!");