Send to a Friend

klaas4's avatar

Make an archive-like page in PHP?

Asked by klaas4 (2189points) August 28th, 2009

Hi!

I want to make an archive for a news-system. My table’s as follows: http://bit.ly/3L2mUd.

My plan is to make an archive like this: http://bit.ly/XKh8T.

The problem is that the script automatically has to put the years above the posts, so that I don’t have to keep adding an other instance every year.

To make it easier here is the function that has to be executed for every year: showarticlesfor($year);

If you understand and can help, it would be greatly appreciated. I’m looking forward to see how this works.. It really have no idea how to do this.

Thanks! Davey.

Using Fluther

or

Using Email

Separate multiple emails with commas.
We’ll only use these emails for this message.