title: lastlogin > DATE_SUB(NOW(), INTERVAL 15 minute) in PHP?
body: <p>This is my SQL statement, however I want to rewrite it to simple PHP, as I've already pulled out the lastlogin in to a variable, so how do I do it?</p>
  
  <pre><code>lastlogin &gt; DATE_SUB(NOW(), INTERVAL 15 minute)
  </code></pre>
  
  <p>Let me try to reexplain perhaps... I have a if statement, I have a time saved in my database in format (0000-00-00 00:00:00) In order to the if statement to be executed, The time in database + 15 minutes must have passed :) And I don't get it to work</p>