View Single Post
Old 04-01-2009, 12:51 PM   #13 (permalink)
WebSavvy
The Contributor
 
WebSavvy's Avatar
 
Join Date: Mar 2009
Location: Springfield, IL USA
Posts: 75
Thanks: 3
WebSavvy is on a distinguished road
Default

Try this:

Code:
SELECT `salt` FROM `users` WHERE `username` LIKE "beezm";
If your mysql select statement uses double quotes, be sure to escape any other double quotes used within the select statement.

Also, what version of mysql are you using?

If you want to wildcard the mysql search query and find usernames that start with "bee" you'd add the wildcard (%) AFTER the match to be performed:

Code:
SELECT `salt` FROM `users` WHERE `username` LIKE "bee%";
If you want to find usernames that end with "zm", you'd add the wildcard (%) BEFORE the match to be performed:

Code:
SELECT `salt` FROM `users` WHERE `username` LIKE "%zm";
hope this helps.
WebSavvy is offline  
Reply With Quote