PHP/MySQL question on search / sort
March 9, 2006 9:27 PM
Subscribe
I'm writing a small app to store my contacts. There's a little tool to search for names. When I search for "Jo", the results should display all names starting with "jo", followed by those with "jo" in the middle:
1. Joanna
2. John
3. Jonathan
4. Marjorie
5. Mojo
How do I do this using a single SQL statement?
posted by arrowhead to computers & internet (14 comments total)
posted by odinsdream at 9:38 PM on March 9, 2006