How to check if date is today's date with PHP
<p>Say, I have 4 dates and the date today is 1/7/16:</p>

<pre><code>1/7/16 1:06:02

1/7/16 8:01:24

1/8/16 7:02:23

1/6/16 3:12:34
</code></pre>

<p>How can I only pick <code>1/7/16 1:06:02</code> and <code>1/7/16 8:01:24</code>. </p>

<p>What date function from PHP can I use to only get the date of today? </p>

<p>Thanks! </p>

<p><strong>UPDATE:</strong></p>

<p>This is being used as a MYSQL selector. </p>

<p>Example: <code>$db-&gt;query("DELETE * FROM entry WHERE date='$today'");</code> </p>

<p>How would this work? How can I get my MYSQL query to select only the dates for today?</p>

<p><strong>UPDATE 2:</strong>
I've tried using <code>curdate()</code>, but the code is not working... 
This is what I'm doing:</p>

<pre><code>$db-&gt;query("DELETE * FROM entry WHERE date=curdate()"); 
</code></pre>

<p><strong>What am I doing wrong?</strong></p>

<p><strong>LAST UPDATE:</strong> <code>curdate()</code> worked properly...</p>