Jump to content

Sorting by date


benji87

Recommended Posts

Hey all im trying to sort a fixtures list by date! But obviously it just sorts it by first numbers for example it orders the list by day value and not day and month,

 

i found this code in a previous post

SELECT
DATE_FORMAT(date_field, '%W %M %Y')
FROM table_name

 

Trouble is i dont really understand. How do i implement that if i want to select all from the table and order it by the date???

Link to comment
https://forums.phpfreaks.com/topic/44621-sorting-by-date/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.