title: how to compare the two date
body: <p>I have a MySQL database with a PHP front end.  In my records I have a posted date and an expire date directly accessed from the database.  What I need to do is check and see if any records expire date matches posted date.</p>
  
  <p>Something like:</p>
  
  <pre><code>&lt;?php $posted_date= $row_Recordset1['date_posted']; ?&gt;
  &lt;?php $exp_date= $row_Recordset1['expire_date']; ?&gt;      
  
  &lt;?php if ($posted_date("Y-m-d") &gt;= $exp_date("Y-m-d")) {
      //statement
  &lt;?php  } ?&gt;
  </code></pre>