You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$sql=mysql_query("select email from user_baseinfo where email='".$email."'",$conn);
$repeat=mysql_fetch_array($sql);
if ($repeat) {
echo "<script>alert('Sorry, this email has been registered!');history.back();</script>";
exit;
}
$ip=$_SERVER["REMOTE_ADDR"];
if (mysql_query("insert into user_baseinfo(email,userpwd,first_name,last_name,ip,usertype,regtime)values('".$email."','".md5(trim($_POST["userpwd"]))."','".$_POST["first_name"]."','".$_POST["last_name"]."','".$ip."','1','".date("Y-m-d H:i:s")."')",$conn))