Jump to content

[SOLVED] Possible to order MySQL Results by this type of date format: 3/1/1999 ?


suttercain

Recommended Posts

I got it...

 

$query = mysql_query("SELECT *, STR_TO_DATE(cover_date,'%d/%m/%Y') as Mydate FROM comics WHERE title = '".mysql_real_escape_string($search)."' AND type ='Comic Book' ORDER BY Mydate") or die(mysql_error());

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.