hello pls i have been facing this error for days now . can someone help me to fix it. the bold line is the one having the warning message.
if($answer["username"] == $_POST["loginUser"] && $answer["password"] == $encryptpass)
{
$_SESSION["loggedIn"] = "ok";
$_SESSION["id"] = $answer["id"];
$_SESSION["name"] = $answer["name"];
$_SESSION["username"] = $answer["username"];
$_SESSION["picture"] = $answer["picture"];
$_SESSION["profile"] = $answer["profile"];
echo '<script>
window.location = "home";
</script>';
}
else
{
echo '<br><div class="alert alert-danger">User or password incorrect</div>';
}