Hey, I am making a website for a band and there is an upcoming gigs page. I want the user to be able to click on the "Date" heading and it will display the gigs according to the date, ASC or DESC.
I have the "date" field in the database set to "DATE". When adding a gig you put the date like this e.g "05-02-08" and that gets inserted into the date column which is set to DATE type. How do I order my results by the date? I know how to do the query like "ORDER BY date DESC" but its just trying to get them to come out in the right order.
I hope I provided enough information. Thanks in advance.
I have the "date" field in the database set to "DATE". When adding a gig you put the date like this e.g "05-02-08" and that gets inserted into the date column which is set to DATE type. How do I order my results by the date? I know how to do the query like "ORDER BY date DESC" but its just trying to get them to come out in the right order.
I hope I provided enough information. Thanks in advance.
