title: PHP check if date is 30 days in the past
body: <p>I'm having a bit of a problem here.</p>
  
  <p>I insert a date into the database: <code>date_last_applied</code>.</p>
  
  <p>I can just call this by using <code>$row['date_last_applied']</code>, of course. Now, I need to check if this inserted date was <strong>30 days ago</strong> and if so, execute an action.</p>
  
  <pre><code>$query = "SELECT date_last_applied FROM applicants WHERE memberID='$id'";
  $result = mysql_query($query);
  
  while($row = mysql_fetch_array($result)) {
      $date = strtotime($row['date_last_applied']);
  
  }
  </code></pre>
  
  <p>That's about all I have.. I tried some things, but they all failed. :(</p>