title: Delete record from database if expired
body: <p>I'm trying to set this up so that if the record is expired it will be deleted, I know my connection is good because this code works</p>
  
  <pre><code>mysqli_query($resDB,"DELETE FROM downloads WHERE downloads='1'"); 
  </code></pre>
  
  <p>but I can't seem to figure out how to do it with time, is it possible to use the less than sign in queries? This is what I have so far.</p>
  
  <pre><code>mysqli_query($resDB,"DELETE FROM downloads WHERE expires &lt; time()"); 
  </code></pre>