SA-MP Forums Archive
MySQL query 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 query problem (/showthread.php?tid=494616)



MySQL query problem - Mauricee - 14.02.2014

Код:
	mysql_format(SQL, str, 128,"UPDATE `bans` SET `ip`='0' WHERE `ip`='%s' LIMIT 1",ip);
	mysql_tquery(SQL, str, " ", " ");
Quote:

callback parameter count does not match format specifier length

What is wrong here? When I execute this query in phpmyadmin / Navicat is correct..


Re: MySQL query problem - CuervO - 14.02.2014

Use "", "", not " ", " ".


Re: MySQL query problem - Mauricee - 15.02.2014

Solved, thankies