Craig Hopson Posted May 20, 2013 Share Posted May 20, 2013 (edited) hi guys i am having trouble with the syntax of a query here is what i have not shore where to go from here select * from `jcow_accounts` WHERE 1 AND (username LIKE craig% OR email LIKE craig% OR fullname LIKE craig%) AND birthyear>1953 AND birthyear<1995 AND gender=0 and !hide_me order by lastlogin DESC LIMIT 20 Thanks Edited May 20, 2013 by Craig Hopson Link to comment Share on other sites More sharing options...
Stream Posted May 20, 2013 Share Posted May 20, 2013 I think you should use quote birthyear<"1995" Link to comment Share on other sites More sharing options...
niche Posted May 21, 2013 Share Posted May 21, 2013 Please see this link for an example. http://www.w3schools.com/sql/sql_like.asp Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now