Jump to content

Archive Question?


Solarpitch

Recommended Posts

Hey,

 

I have a list of articles that are being called from a database and display in order of upload date onto the page. I would like to archive articles that are older than two months into a separate page.

 

So initially I would select all he archives that are less than two months and display on page1, then do a second one to select all the remaining ones that are older than two months and display on page 2.

 

Just looking for a bit of help to get started if I can.. cheers.

Link to comment
https://forums.phpfreaks.com/topic/110436-archive-question/
Share on other sites

I dont... I was just trying to come up with what way to implement it. So could I have a query to

 

SELECT * FROM articles Where upload_date.... then something here about less than 2 months. Not sure how id do that tho. Would that be the best way yeah.

Link to comment
https://forums.phpfreaks.com/topic/110436-archive-question/#findComment-566613
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.