Jump to content

[SOLVED] Ordering


Democreous

Recommended Posts

I was wondering if it is possible to order a mysql query by two things.  I'm trying to order it using the date and the time, which are two separate fields, so it orders by the date, then if there are multiple dates, by the time.

 

 

right now it looks like this

	$sql = mysql_query("SELECT * FROM calendar_events WHERE event_date LIKE '____-$month-__' ORDER BY event_date && event_time ASC" );

 

One of the statements after ORDER doesn't work, and I have a feeling I cannot do this.

 

Any suggestions?

Link to comment
https://forums.phpfreaks.com/topic/37022-solved-ordering/
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.