28.07.2018, 11:05
I changed
to:
and it working, i want reply real fine with it.
PHP Code:
if(mysql_errno(MainPipeline) != 0)
{
printf("[MySQL] (MainPipeline) Fatal Error! Could not connect to MySQL: Host %s - DB: %s - User: %s", SQL_HOST, SQL_DB, SQL_USER);
print("[MySQL] Note: Make sure that you have provided the correct connection credentials.");
printf("[MySQL] Error number: %d", mysql_errno(MainPipeline));
SendRconCommand("exit");
}
else print("[MySQL] (MainPipeline) Connection successful toward MySQL Database Server!");
PHP Code:
if(mysql_errno(MainPipeline) != -1)
{
printf("[MySQL] (MainPipeline) Fatal Error! Could not connect to MySQL: Host %s - DB: %s - User: %s", SQL_HOST, SQL_DB, SQL_USER);
print("[MySQL] Note: Make sure that you have provided the correct connection credentials.");
printf("[MySQL] Error number: %d", mysql_errno(MainPipeline));
SendRconCommand("exit");
}
else print("[MySQL] (MainPipeline) Connection successful toward MySQL Database Server!");