我的 activate.php 代码如下
<?php
if(isset($_GET['id']) && isset($_GET['u']) && isset($_GET['e']) isset($_GET['p']) {
include_once("pathname");
$id= preg_replace("#[^0-9]#i","",$_GET['id']);
$u = preg_replace("#[^a-z0-9]#i","",$_GET['u']);
$e = mysqli_real_escape_string($db_conx,$_GET['e']);
$p = mysqli_real_escape_string($db_conx,$_GET['p']);
if($id == "" || strlen($u) < 3 || strlen($e) < 5 || $p == ""){
header("location: message.php?msg=activation_string_length_error");
exit();
}
$sql ="SELECT * FROM users WHERE id='$id' AND username='$u' AND email='$e' AND password='$p' LIMIT 1";
$query = mysqli_query($db_conx,$sql);
$numrows = mysqli_num_rows($query);
if($numrows == 0){
header("location: message.php?msg=Your Creditentials are not matching anything in our system");
exit();
}
$sql = "UPDATE users SET activated='1' WHERE id='$id' LIMIT 1";
$query= mysqli_query($dbconx,$sql);
} else {
header("location: message.php?msg=missing_GET_variables");
exit();
}
?>
不知道为什么我会收到这条消息?它说它是第 2 行,有一个意外的 T_ISSET,我没有任何我不认为的,我对 PHP 相当陌生,所以如果有人可以向我解释如果你发现错误我做了什么?