-1

这段代码有什么问题我在第 7 行收到错误 UNEXPECTED T_STRING..

if(!$query) 
{
    die("Unable to enter into database");
}
elseif

    header("location:/Peach Mansions/confirm.php");

}
else
{
echo 'a required field is missing'; 
}

?>

4

2 回答 2

3
elseif

    header("location:/Peach Mansions/confirm.php");

}

应该

elseif (YOUR_CONDITION) {

    header("location:/Peach Mansions/confirm.php");

}
于 2013-07-22T11:25:53.197 回答
0

你错过{和条件之后elseif

elseif (condition) {
于 2013-07-22T11:24:56.233 回答