SiaMensiS Posted January 14, 2010 Share Posted January 14, 2010 I'm trying to figure out how to do it so that when a user clicks on a certain letter of the alphabet that has been listed, how does I get it to list everything in that column that begins with that letter i.e they click on the A, and it lists everything in that column that the letter is A So apple will be listed, but no Banana, also non case-sensitive. Thanks Link to comment https://forums.phpfreaks.com/topic/188396-listing-values-in-a-column-in-mysql-that-begin-with-a-certain-letter/ Share on other sites More sharing options...
killerb Posted January 14, 2010 Share Posted January 14, 2010 <?php $query = "SELECT * FROM tablename WHERE colname LIKE '{$letter}%'"; Link to comment https://forums.phpfreaks.com/topic/188396-listing-values-in-a-column-in-mysql-that-begin-with-a-certain-letter/#findComment-994636 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.