How to get dates from PHP and MySQL database that is equal to the current date?
<p>In my table, I have a field called <code>created_at</code> with data type <code>timestamp</code> and values are like <code>2016-12-30 00:30:10</code> and so on.</p>

<p>In my query, I get all those by a simple <code>select *</code> statement.</p>

<p>How can I get only the dates where it is equal to today's date?</p>

<p>I am using a framework called <a href="http://makoframework.com" rel="nofollow noreferrer">makoframework</a> and the query builder is this:</p>

<pre><code>$data = $query-&gt;table('customers')
-&gt;where('created_at', '=', //date today)
-&gt;all();
</code></pre>

<p>Any help would be much appreciated.</p>