Reply to ORDER BY

Your name:

Reply:


Posted by gerg on 10/07/04 11:35

In my database I've got calendar table with the following fields,
`month`, `day`,`year`.

My sql query is

$sql="SELECT * FROM `calendar` ORDER BY `year`,`month`,`day` ASC";

This query puts the oldest "years" at the top, IE 2005 at the top 2007
at the bottom, but then it alphabatizes the month. Is there any way to
get the query to order them in the actual month order, IE don't put
April above February during an ordering. The months are input into the
database with the full month name IE March or December.

Thanks in advance!

Greg

[Back to original 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

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