In PHP, to display the dates for the next six saturdays you need to write the following script.
<?php
$startdate=strtotime("Saturday");
$enddate=strtotime("+6 weeks",$startdate);
while ($startdate < $enddate) {
echo date("M d", $startdate),"<br>";
$startdate = strtotime("+1 week", $startdate);
}
?>
The output of the above code is:
Jan 02
Jan 09
Jan 16
Jan 23
Jan 30
Feb 06
0 Comment(s)