0
以下のコードでは、エラーが発生しています。(解析エラー:構文エラー、予期しないファイルの終わり、 '' 'が入っている)。この解析エラーをPHPファイルで修正するにはどうすればよいですか?
<?php
include_once 'connect.php';
include_once 'functions.php';
sec_session_start(); // Our custom secure way of starting a PHP session.
if (isset($_POST['email'], $_POST['p'])) {
$email = $_POST['email'];
$password = $_POST['p']; // The hashed password.
if (login($email, $password, $mysqli) == true) {
// Login success
header('Location: ../protected_page.php');
` //echo 'Login Successful';
}
else {
// Login failed
header('Location: ../loginpage.php?error=1');
//echo "Login Unsuccessful";
}
}
else {
// The correct POST variables were not sent to this page.
echo "Invalid Request";
} ?>
これはファイル全体ですか? – JRsz