LanceT Posted January 13, 2007 Share Posted January 13, 2007 Lets say I have a row called "hello" and a row for "id" which is automatically incremented. Hello can be inputted with several different values (for example: hi, you, low)Is there an easy way to print out all the information for the highest valued 5 ids that have the value of "hi" in my row "hello" ? Link to comment https://forums.phpfreaks.com/topic/33996-more-detailed-selection/ Share on other sites More sharing options...
Barand Posted January 13, 2007 Share Posted January 13, 2007 SELECT * FROM tablenameWHERE hello = 'hi'ORDER BY id DESCLIMIT 5 Link to comment https://forums.phpfreaks.com/topic/33996-more-detailed-selection/#findComment-159866 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.