15.09.2014, 05:18
Quote:
Hey, I got a question.
How can I check whether the server is connected to the mysql server or not? As far as I know, the function mysql_ping is not longer supported, is it? |
pawn Код:
handle = mysql_connect("host", "user", "database", "password");
if(handle && mysql_errno(handle) == 0)
print("[MYSQL]: Connection to database was established!");
else
print("[MYSQL]: Connection to database failed!");