/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$start_date = '2008-03-01'; $check_date = $start_date; $end_date = '2008-03-14'; $i = 0; while ($check_date != $end_date) { echo $check_date . '<br>'; $i++; }
URL: http://www.v7n.com/forums/coding-forum/79591-php-loop-through-dates.html