The solution of
DATE_FORMAT(DATE, '%Y %m %d')AS DATE would work if I wanted it to appear numerically...so now the list looks like
2003 01 17
2003 01 18
2003 02 18
and so on...not to visually pleasing or user friendly. I need it to say
January 17, 2003
January 18, 2003
February 18, 3003
I have been trying to understand the usort() function and how I can use it but can I use it properly at all if I am getting the Month back in characters and not numbers ? Febrary will always come before January in that regard.
Can I pull the data as suggested in format:
$query = "select DATE_FORMAT(DATE, '%Y %m %d')AS DATE, TIME, DAY, DESCRIPTION, ID
FROM ITINERARY
ORDER by DATE
then call my array of rows:
for ($i=0; $i <$num_results; $i++)
{
$bgcolor = ($c++ & 1) ? '#FFFFCC' : 'white';
$row = mysql_fetch_array($result);
and somehow reformat the date after it is pulled and sorted in here?:
echo "<tr bgcolor=$bgcolor class='itintext'><td>";
echo htmlspecialchars( stripslashes($row["DATE"]));
echo "</td>";