Raised This Month: $ Target: $400
 0% 

SQL Query error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
iNvectus
Member
Join Date: Sep 2014
Location: Bulgaria
Old 03-19-2017 , 10:32   SQL Query error
Reply With Quote #1

Hello.I would like to ask where is the mistake here?
PHP Code:
formatexszQuerycharsmaxszQuery ), "SELECT user_name FROM ph_users WHERE user_id IN (%s) ORDER BY FIELD(user_id,%s)"szBufferszBuffer ); 
Because in HLDS I have error like that:
Quote:
L 03/19/2017 - 16:24:02: [MySQL] Error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') ORDER BY FIELD(user_id,)' at line 1.
Where am I doing a mistake?
iNvectus is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode