Why does it return true?
<p>I can't seem to find the problem.</p>

<pre><code>// Check that someone from this IP didn't register a user within the last hour (DoS prevention)
$query = mysqli_query($dbc, "SELECT COUNT(id) FROM accounts WHERE registration_ip = '".$_SERVER['REMOTE_ADDR']."'  AND registered &gt; ".(time() - 3600));

if (mysqli_num_rows($query) &gt; 0) {
    $errors[] = 'To prevent registration flooding, at least an hour has to pass between registrations from the same IP. Sorry for the inconvenience.';
}
</code></pre>

<p>Why does this always return true no matter what? Even if the accounts table is empty.</p>
