도와주세요 : 아래 코드가 $ error_message에서 오류를 반환하는 이유는 무엇입니까?SQL에서 두 번 열을 선택하십시오.
내 $_POST
은 다음과 같습니다
Array
(
[preferred_district1] => Bubi
[preferred_district2] => Buhera
[gender] => Male
[user_first_name] => Kelvin
[user_last_name] => Tash
[mobile_number] => 77589655
[ec_number] => TAS4752
[user_email] => [email protected]
[user_password] => tash
[blank] =>
[level_taught] => Primary - ECD
[current_province] => Harare
[current_district] => Goromonzi
[current_school] => SEKE 3 HIGH
)
내 코드는 여기에 있습니다 :
if (empty($error_message) && (isset($_POST["preferred_district1"]) ||
isset($_POST["preferred_district2"])) &&
(($_POST["preferred_district1"] || $_POST["preferred_district2"]) ==
$_POST["current_district"])){
$error_message = 'Invalid form input: Preferred District may not
be the same as Current District';
}