This code shows the week number
<?php
$week_number = date("W");
echo "Week " . $week_number;
?>
and this code shows the dates in that week
<?php
$week_number = date("W");
$year = date("Y");
for($day=1; $day<=7; $day++){
echo "<td>";
echo date('d M', strtotime($year."W".$week_number.$day))."
";
echo "</td>";
}
Its for a week view calender and what i need is a next and prev button to skip to next week and go back to prev week.. PLease help i cant find a solution to add one week or decrease on week with buttons.