comparison between two times
<p>I am developing a website on php. I am submitting a time field as M:SAM or PM (EX: 10:55AM) something like this. I want to compare this field with current time. I am getting the current time by using this code.</p>

<pre><code>$time = date("h:i A");
$time = str_replace(' ','',$time); 
</code></pre>

<p>But here I want to compare this current time with database result.</p>

<p>Thanks
Sateesh.</p>
