PHP Question

Permabanned
Joined
22 Apr 2007
Posts
1,805
So I have my news page set up where a snippet of the article is shown on the news page and then the user clicks on the "view article" link and it takes them off to the full article.

I also would like a news archive, probably called newsarc.php

In here, I want it to look the same as the news page but have the months listed down the right hand side and the individual months news on the left

i.e. so that all the news from october shows on the left rather than showing all the news stored in the database.

I'd be grateful for some help.
 
:(

I kind of have it working, but I'm stuck on how to display just the months news when the appropriate month is clicked.

On the main news page its easy as its sorted by id descending. (I have an id field in my table)

I dont have a date field though so I wonder if that might help make things easier?
 
OK, I have an ID field and then the title field is the date, manually entered as text 'varchar'

So I'll add a date field to the table and have a crack
 
Back
Top Bottom