mysql_query not working and closes server connection - 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_query not working and closes server connection (
/showthread.php?tid=479929)
mysql_query not working and closes server connection -
Jonesy96 - 07.12.2013
I'm connected to my database with the right information so it's not that. My code for the /jail command is below, yet when I execute the command it does not update the database field and simply closes the server connection. It's not to do with the SQL because I've exported that and tried it directly in phpMyAdmin and it worked fine. I'm using this mysql plugin:
https://sampforum.blast.hk/showthread.php?tid=122983
Code is below, any help please?
EDIT: FIXED
Thanks in advance!
Re: mysql_query not working and closes server connection -
Jonesy96 - 07.12.2013
Nevermind, fixed it. Was an issue with the WAY I was connecting to the database.