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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.