mattsolomon Posted March 6, 2011 Share Posted March 6, 2011 if i want to display upcoming events and only want to show the top 3? Quote Link to comment Share on other sites More sharing options...
redarrow Posted March 6, 2011 Share Posted March 6, 2011 SELECT * FROM `your_table` LIMIT 0, 3 Quote Link to comment Share on other sites More sharing options...
mattsolomon Posted March 6, 2011 Author Share Posted March 6, 2011 thank you, does that come before or after the ORDER function? Quote Link to comment Share on other sites More sharing options...
brentmoeller Posted March 6, 2011 Share Posted March 6, 2011 SELECT table from table ORDER BY last DESC LIMIT 3; of course altering table table last Quote Link to comment Share on other sites More sharing options...
mattsolomon Posted March 7, 2011 Author Share Posted March 7, 2011 Thanks a bunch x Quote Link to comment Share on other sites More sharing options...
brentmoeller Posted March 7, 2011 Share Posted March 7, 2011 do you got it figured out matt? Quote Link to comment 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.