My goal is to show all the days in a table selected using a two datepicker. Datepicker One for start date and date picker Two for end date. e.g 2014-08-04 to 2014-08-13.
As you can see at my table. It didn't include Saturday and Sunday and that is what im trying to achieved. Here is the code i've been playing around for a while:
$date1 = strtotime("2014-08-01");
$date2 = strtotime("2014-08-08");
do
{
echo date("Y-m-d", $date1)."<br>";
$date1 = strtotime("+1 day", $date1);
} while ($date1 <= $date2);
Btw. I get the data populating my table using mysql and i want to manipulate it to show saturday and sunday using php and html.
Thanks and have a nice day!