title: How to check if user have X records from last 1 hour? [PHP/MySQL]
body: <p>I want to check if the user has 5 records in my MySQL database in the last hour. That´s how I am doing it now:</p>
  
  <pre><code>$link = mysqli_query($link, "SELECT * FROM find_points WHERE timestamp &gt; '.time()-3600.' AND user_id = '1' ORDER BY id DESC");
  
  if(mysqli_num_rows($link) &gt;= 5) {
     echo 'more than 5 results';
  }
  </code></pre>
  
  <p>It looks like it should work, but it doesn't work...</p>