Well i am using the following code to get the future Monday dates ..the only thing left in it is that it gets the current date and add 7 days in it so it can only work if the day is monday, what i need is that somehow it should get the comming monday automatically and put it in the first_monday
$first_monday = date(); //set the date of the first monday (this will be week1)
$first_monday_timestamp = strtotime($first_monday); //convert to Unix timestamp
$weeks = 5; //number of weeks
$week_in_seconds = 606024*7; //number of seconds per week (7 days)
for ($i = 0; $i < $weeks; $i++)
{
$date_timestamp = $first_monday_timestamp + ($week_in_seconds * $i);
$date = date("l Y-m-d", $date_timestamp);
$week_number = $i + 1;
echo "Week" . $week_number . ": " . $date;
echo "<br>";
}