Raised This Month: $ Target: $400
 0% 

Help with SQL querry


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-02-2009 , 09:14   Re: Help with SQL querry
Reply With Quote #2

I think you want something like this:

Code:
format(query,1023,"SELECT nickname FROM amx_amxadmins WHERE username='%s'",admin_nick)



or this:

Code:
format(query,1023,"SELECT nickname FROM amx_amxadmins WHERE authid='%s'",admin_steamid)

Also, make sure you escape the player's name before formatting or you could end up with a nasty injection exploit.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
 



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 01:48.


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