php code to find the difference between two dates
<p>I want to calculate difference between two dates.</p>

<p>I am new in php.......</p>

<p>I have a field called last login in which date and time entered if user gets login and with this calculation i can block the user if he does not login in 15 days so i need to calculate number of days.</p>

<p>Please help me full code like</p>

<pre><code>if(lastlogin&gt;15days)
{
 user_status=blocked;
}
else
{continue;}
</code></pre>

<p>please help...................</p>
