title: php date convert to seconds
body: <p>I am storing the date of a post in mysql database in this form y/m/d I want to check if the post is older than 3 days. Is there any way I can convert it to seconds ? and then check like so:</p>
  
  <pre><code>if($mysql_date &gt; $three_days_old){
  echo "old post";
  }else {
  echo "new post";
  }
  </code></pre>