pixeltrace Posted July 28, 2007 Share Posted July 28, 2007 hi, i have a pagination that has the alphabet buttons also. how to i set the query so that when i click the letter it will return the list wherein all names starts with that letter let say, i click letter "A" in the return list, all names starting at A will be listed. hope you could help me with this. thanks! Quote Link to comment https://forums.phpfreaks.com/topic/62163-how-to-grab-first-letter-of-name/ Share on other sites More sharing options...
jitesh Posted July 28, 2007 Share Posted July 28, 2007 SELECT * FROM `table` WHERE `Keyword` Like 'A%' Quote Link to comment https://forums.phpfreaks.com/topic/62163-how-to-grab-first-letter-of-name/#findComment-309458 Share on other sites More sharing options...
tibberous Posted July 28, 2007 Share Posted July 28, 2007 select * from tablename where word like 'A%' Quote Link to comment https://forums.phpfreaks.com/topic/62163-how-to-grab-first-letter-of-name/#findComment-309464 Share on other sites More sharing options...
Daniel0 Posted July 28, 2007 Share Posted July 28, 2007 select * from tablename where word like 'A%' That's exactly what jitesh just said... Quote Link to comment https://forums.phpfreaks.com/topic/62163-how-to-grab-first-letter-of-name/#findComment-309481 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.