誰かがなぜこれが起こっているのか説明できますか?ここに完全なコードがあります。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
ありがとう?どうすればそれを修正することができます、私はあなたが私のサイトの管理者にすることができますあなたがそれを安全にする手助けする! –