linea 25
if($respuesta["usuario"] == $_POST["ingUsuario"] && $respuesta["password"]== $encriptar){
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.
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:
$respuesta
if(is_array($respuesta) && $respuesta["usuario"] == $_POST["ingUsuario"] && $respuesta["password"]== $encriptar){
Copyright © 2021 Jogjafile Inc.
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
To avoid notice you could check first if
$respuesta
is an array: