i have some entries which are having data month-wise
like
May-2009
April-2009
March-2009
-
-
-
-
-
-
January-2000
Now i want this data to be sorted monthly via mysql query.
$q=mysql_query(SELECT id,action,
L1_data,
L2_data,
L3_data,
L11_data
from table
where action='feild name'
ORDER BY DATE_FORMAT(L11_data,'%m-%Y') DESC);
while($r=mysql_fetch_array($q))
{
-------
}
here L11_data is the one that is having all the month values (eg May-2009 etc)
Iam using this query but it is of no help. what i want is to show data month-wise from May-2009 to January-200 Can anyone please suggest me some code for this???