Try this:
<?php
$startDate = "2006-05-01";
$endDate = date("Y-m-d");
$diffInSec = strtotime($endDate) - strtotime($startDate);
$diffInDays = $diffInSec/60/60/24;
echo $diffInDays;
?>
Hope this helps.
Thanks and God Bless!!
Ehsan
http://ehsan.bdwebwork.com