First it is bad coding practice to get the date more than once. What if it changes from the 31 of July to the 1 of August when the computer have read date("m") but not date("d"). Then the date would be the 1 of July. Instead do like this:
<?php
$month = 10;
$day = 17;
$year = 2006;
$mydate = getdate();
$days = (mktime(0, 0, 0, $mydate("m"), $mydate("d"), $mydate("Y")) - mktime(0, 0, 0, $month, $day, $year)) / 86400;
echo $days;
?>
Then for your question. Try to use [man]round[/man] or [man]floor[/man] to get the number of days ago.
$days = (mktime(0, 0, 0, $mydate("m"), $mydate("d"), $mydate("Y")) - mktime(0, 0, 0, $month, $day, $year)) / 86400;
$days = round($days);
echo $days;