私の登録ページは次のようになります
$checkForUser = mysql_query("SELECT id FROM `users` WHERE `username`='{$posts['username']}' OR `email`='{$posts['email']}'");
$checkForUserRows = mysql_num_rows($checkForUser);
$ip = VisitorIP();
$checkForIP = mysql_query("SELECT id FROM `users` WHERE `ip`='{$ip}'");
$checkForIPRows = mysql_num_rows($checkForIP);
if ($checkForUserRows > 0) {
$error = "Username or email already registered!";
}else if ($checkForIPRows > 0) {
$error = "You may only have one account! This attempt has been logged. You will be banned! ";
次のエラーで、IPがすでに存在するアカウントを自動禁止したい$error = "You may only have one account! This attempt has been logged. You will be banned! ";