SA-MP Forums Archive
MySQL problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL problem (/showthread.php?tid=576357)



MySQL problem - Dominic123 - 03.06.2015

Hello,i just install mysql BlueG but i got a errors a lot.All is like
Код:
mysql_query - invalid connection handle (id: 0)
Do you know what i can try?


AW: MySQL problem - Kaliber - 03.06.2015

You need to handle the result of mysql_connect for your queries..like:

Код:
new MySQL;

MySQL = mysql_connect(...);

mysql_query(MySQL, query, ...);