I'm looking for a way to write a quick Agenda style calendar that will only pull the date given from a database of events? Can anyone help me out with this?
if(isset($_REQUEST['day']) && $_REQUEST['day'] != '')
{$timeLine = trim($_REQUEST['day']);}
else{$timeLine = false;}
if($timeLine == +1)
{
$NewDate=Date('y:m:d', strtotime("+1 days"));
}
elseif($timeLine == -1)
{
$NewDate=Date('y:m:d', strtotime("-1 days"));
}
else{ $Today = date('y:m:d'); }