View Single Post
  #3 (permalink)  
Old Feb 2nd, 2008, 16:23
linchpin311 linchpin311 is offline
Junior Member
Join Date: Mar 2007
Location: Long Island, NY
Age: 23
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Complicated database querys

oh absolutely, im not that crazy...

i've done that...but i was hoping i could say something like:
Code: Select all
SELECT * FROM users WHERE (username OR firstname OR lastname) LIKE ('%John%' OR '%Smith%')
just to save some of my sanity. i have tried plugging that in instead of what i have now and it doesnt work properly. you think there is something similar i could say that would work and be not as long and tedious as what i have now?

Last edited by linchpin311; Feb 2nd, 2008 at 16:26.
Reply With Quote