I have this piece of code to check if a user has already created an account the last hour:
$result = mysql_query("SELECT * FROM accounts WHERE registration_ip = '$_SERVER[REMOTE_ADDR]' AND created > ".(time() - 3600));
if (mysql_num_rows($result) > 0)
exit('Blablal')
It does not exit as I want it do, i can make how many accounts i want.
You see any obivious problem? My db tablesandfields are correct