i have created a site and it calculates the days since a user has logged in. But when the months changed the days since login got messed up. heres what it does.
$today = date('YmD');
$dsl = $today - $lastlogin;
$lastlogin = 20031130 and $today = 20031201 how could i fix this so when the months changed it does the calculation correctly