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! 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%' 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%' 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... 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
Archived
This topic is now archived and is closed to further replies.