title: Checking if mySql datetime is older then 1 day from php now()
body: <p>I have a record returned from MySQL that has a datetime field. What I want to do is take this value and see if it is older then 24 hours, I presume using PHP's time() to get the current time.</p>
  
  <p>At the moment if I echo them out I get:</p>
  
  <pre><code> 1276954824            this is php's time()
   2010-06-19 09:39:23   this is the MySQL datetime
  </code></pre>
  
  <p>I presume the top one is a unix time? Have been playing around with strtotime but with not much success..</p>
  
  <p>ANy help welcome!</p>