Hi guys, I searched the forum but couldn’t find anything hoping you might be able to help. I’m trying to create an archive button for my site, www.unthinkable.biz, so that when a visitor clicks the “older” button at the bottom of the page it displays results from the previous day, and that each time the older button is clicked it shows older results. I didn’t code the site and was given it recently but haven’t got a clue when it comes to php (i’m ok with HTML and CSS though). So far I can only get it to show me the previous day’s articles.
This code is at the top of the page -
$page_name = $_REQUEST[“page_name”];
if (!isset($page_name)) { $page_name=“home”;}
$article_id = $_REQUEST[“article_id”];
$today = date(“Y-m-d”);
$thepast = “2009-01-01”;
$yesterday = sql_date_shift($today,"-1 day");
$lastweek = sql_date_shift($today,"-7 day");
$one_day_ago = date(‘Y-m-d’,strtotime(’-1 day’));
And this is the code I have for the button
<a href="/home/<? echo dateformat($one_day_ago,"Y-m-d","d-m-Y");?>/" id=“nav3”>