This is my problem, I have a schedule web page, and i want the user to be able to browse through the different days using previous and next day hyperlinks. I wrote a simple function that should change the day according to a mouse click, but i don't know how to call the function from within the anchor tags. I know this must sound like a total newbie question, but PLEASE help mne!!!
<?php
$day = date("d");
$month = date("m");
$year = date("y");
$date = "$month-$day-$year";
$dayofweek = date("l");
function previous(){
$day = --$day;
$day = date("d", mktime(0,0,0,$month,$day,$year));
$date = "$month-$day-$year";
return $date;
}
echo $date;
?>
the url to the test site is:
http://www.macktree.com/times/
thanks in advance