Raised This Month: $ Target: $400
 0% 

Is MySQL Query safe enough?!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spunky
Senior Member
Join Date: May 2008
Location: Orlando, Fl.
Old 05-16-2009 , 07:23   Re: Is MySQL Query safe enough?!
Reply With Quote #1

Actually:

Code:
SELECT * FROM someTable WHERE nick = '%s'
Single quote, not double, so you're fine.
Spunky is offline
Send a message via AIM to Spunky
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 05-16-2009 , 13:53   Re: Is MySQL Query safe enough?!
Reply With Quote #2

Quote:
Originally Posted by Spunky View Post
Actually:

Code:
SELECT * FROM someTable WHERE nick = '%s'
Single quote, not double, so you're fine.
No because you can have single quotes in nicknames.
__________________
joaquimandrade is offline
Reply



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:26.


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