title: How to echo mysql CURRENT_DATE() in PHP?
body: <p>I would like to compare PHP:</p>
  
  <pre><code>$now = date('Y-d-m H:i:s');
  </code></pre>
  
  <p>with mysql <code>CURRENT_DATE()</code> and <code>die();</code></p>
  
  <p>I need to check if the mysql <code>current_date</code> is the same as <code>$now</code>.</p>
  
  <p>However, I don't know how to do that. I would probably need some format change to <code>CURRENT_DATE()</code> too so I can compare it with <code>$now = date('Y-d-m H:i:s');</code></p>
  
  <p>Is this possible?</p>
  
  <p>If yes, what would php code look like?</p>