Martin Cameron wrote:
$ndays=14;

function get_next_dates($ndays)
{
 $today=date("m-d-Y",mktime(0,0,0,date("m"),date("d"),date("Y")));

$forward_date=date("m-d-Y",mktime(0,0,0,date("m"),date("d")+$few_days,date("Y")));
 print "<h1>$today === $few_days === $forward_date</h1>";
 for($i=0;$i<$ndays;$i++)
 {

$new_days_array[]=date("m-d-Y",mktime(0,0,0,date("m"),date("d")+$i,date("Y")));
 }
 return($new_days_array);
}



What's the question?


--
By-Tor.com
It's all about the Rush
http://www.by-tor.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to