-1

enter image description here

enter image description here

linea 25

if($respuesta["usuario"] == $_POST["ingUsuario"] && $respuesta["password"]== $encriptar){
2

1 Answer 1

1

Since PHP 7.4 it will generate a notice when trying to use values of type null, bool, int, float or resource as an array.

https://www.php.net/manual/en/migration74.incompatible.php#migration74.incompatible.core.non-array-access

Array-style access of non-arrays

Trying to use values of type null, bool, int, float or resource as an array (such as $null["key"]) will now generate a notice.

To avoid notice you could check first if $respuesta is an array:

if(is_array($respuesta) && $respuesta["usuario"] == $_POST["ingUsuario"] && $respuesta["password"]== $encriptar){
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.