有人可以解释为什么会发生这种情况吗?这是完整的代码。PHP和MySQL T_CONSTANT_ENCAPSED_STRING错误
<?php
$country = "UNKNOWN";
if ($_REQUEST['id'] == "register") {
$name = $_POST['Name'];
if ($_POST['Email'] == $_POST['emailrepeat']) {
$email = $_POST['Email'];
}
$username = $_POST['username'];
if ($_POST['password'] == $_POST['PasswordAgain']) {
$password = $_POST['password'];
}
$address = $_POST['Address'];
$county = $_POST['billingState'];
$city = $_POST['city'];
$zip = $_POST['Zip'];
$code = rand(11212,123243132);
mysql_connect("extraterrestrial.x10.mx","extrater","*******");
mysql_select_db("extrater_keys");
$moi = "VALUES ("$name","1","0","$password","$_SERVER['REMOTE_ADDR']","0","$country","0","$county","$country","$city","$email","$zip","$address","$code")";
$query = "('INSERT INTO info (name, points, isvalidated, password, ip, banned, cc, paypal, state, country, city, email, fullname, zipcode, address, code)"; }
mail($email, "Le Prizes Confirmation E-Mail", "Thank you for registering with us! Your confirmation link is as follows. \n http://extraterrestrial.x10.mx/confirm.php?code=" + $code + " Happy Earning!");
header("Location: thanks.php");
?>
这是我的GPT流程脚本,它将注册用户。它是由我制作的。
S QL注射。 – stryba
谢谢?我该如何解决这个问题,如果你能帮助确保安全,我可以让你成为我网站上的管理员! –