Scorpion28 Posted March 25, 2013 Share Posted March 25, 2013 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'); } Link to comment https://forums.phpfreaks.com/topic/276149-php-agenda-calendar/ Share on other sites More sharing options...
Barand Posted March 25, 2013 Share Posted March 25, 2013 Dates stored in the database need to be type DATE, format YYYY-MM-DD so you need to change you date formats to 'Y-m-d' Link to comment https://forums.phpfreaks.com/topic/276149-php-agenda-calendar/#findComment-1421021 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.