I was wondering, when you go to display data in a table, how do you get it to display the data in order, like by date? The date closest to the date today on top, and the date furthest to today on the bottom? Please help 🙂
Depending on how you have the dates formatted in your database table, you can just do a simple ORDER BY clause in your SQL query.
select * from table order by date
As you probably guessed, I'm sortof new at using php, so how would you reccomend ordering the dates, or rather how would you order the dates in the database?