I recently updated my website to comply with MYSQLi standards and encountered several errors but after resolving the last error about "Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given" there is no error displaying in my error log but the pin validation page returns that the pin is invalid even when the pin is correct please help.
below is the function codes for the do validation
function doPinValidation() {
$errorMessage = '';
$pin = $_SESSION['glawsot_tmp']['pin'];
$ipPin = $_POST['accpin'];
if($pin ==$ipPin) {
$_SESSION['glawsot_user'] = $_SESSION['glawsot_tmp'];
unset($_SESSION['glawsot_tmp']);
header('Location: index.php');
exit;
}
else {
$errorMessage = 'Invalid pin numbers, please try again.';
}
return $errorMessage;
}