You are here: ORDER BY order of months « All PHP « IT news, forums, messages
ORDER BY order of months

Posted by kenoli on 11/14/05 20:08

I am querying a mysql database and using ORDER BY in my query statement
to order the results on a date field.

It seems to be handling the day and year part OK, but when it orders
the month part it is ordering by the first digit first, thus "10" is
seem as "1" like this:

10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9

Is there some way I can tell it to order the months like this:

1,2,3,4,5,6,7,8,9,10,11,12

In this case,

Thanks,

--Kenoli

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация