What I have inside one of my rows in my table is a specific ID. Now what I have is some PHP code to specifically sort the ID and display something when something has the specific ID. All I need is how can I use mysql_query to select a letter (sort by letter) and do that code when that letter is returned? Something like $sql = "SELECT * FROM `row`"; except it selects the ID "A" from the entire row and does the action from that. Thanks