You are here: Re: Grouping database output « PHP SQL « IT news, forums, messages
Re: Grouping database output

Posted by Captain Paralytic on 07/03/07 09:12

On 3 Jul, 01:58, ryan.m.pow...@gmail.com wrote:
> Hi,
>
> I run a school newspaper and I am trying to create a databased archive
> of our previous news stories. Each story has a dateline field in the
> table (ex: 2007-06-04). What I'm trying to do is query the database
> and then group all the stories by month. So I'd have an array of
> years, months, and then stories. Does anyone know an easy way to do
> this?
>
> Thanks!
>
> Ryan

I did a google search of the newsgroups for the words
group by month
and found a plethoria of replies on this very topic, including one of
my own recent ones.

http://groups.google.co.uk/group/comp.databases.mysql/browse_frm/thread/726ff96947f164e8/8e9ad033a5129e0e?lnk=gst&q=group+by+month&rnum=1#8e9ad033a5129e0e

 

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

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