[HELP] MySQL (mysql_query and mysql_ping)
#1

Hi guys! So I changed MySQL version from R5 to R37.. And then shows the error's on line's where is:

Код:
if(mysql_ping() == -1)
		mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS);
Код:
mysql_query(string);
How to fix it? :/
Reply
#2

mysql_ping was removed a whole while back because the plugin will automatically reconnect if the connection was closed. Furthermore, the parameters for mysql_query have changed. Though if you want to do it right you will need to revise the entire script to use threaded queries.
Reply
#3

Vince, yes, I see.. But I don't know how to do this.. how to replace these line's with mysql_query(string);

I'm new on MySQL..
Reply
#4

Hey! Somebody can to show, how to change this shit.. ( I don't understand.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)