Trying to access array offset on value of type null when using mysqli_fetch_array() in PHP

QuestionsTrying to access array offset on value of type null when using mysqli_fetch_array() in PHP
sethbeckerman5 Staff asked 4 years ago

In my login page. when username or password is incorrect then it is displays both if condition statements and also display this error: "Trying to access array offset on value of type null".kindly help me out to figure this out. thanks in advance.
Here is the code:

and here is the error:

Notice: Trying to access array offset on value of type null in C:xampphtdocsselfstudylogin.php on line 75

username is incorrect

Notice: Trying to access array offset on value of type null in C:xampphtdocsselfstudylogin.php on line 79

password is incorrect


View on Stack Overflow