wrong syntax sql query ? - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: wrong syntax sql query ? (
/showthread.php?tid=228726)
wrong syntax sql query ? -
vardanega - 20.02.2011
hello, I selected in my database a random result, I tried this query but apparently this does not work.
Код:
mysql_query("SELECT * FROM `infomap` WHERE `id` != '-1' ORDER BY RAND() LIMIT 1");
Is this a syntax problem?
Thank you
Vince + +