I am saving the usuID in the array, in a php file
$query = mysqli_query($conexion,"SELECT COD_USUARIO, TIPO_USUARIO FROM usuarios where USU_USUARIO = '$usuario' and PASS_USUARIO = '$contrasenia'";)
$fila = mysqli_fetch_array($query);
session_start();
$_SESSION['usuID'] = $filas['COD_USUARIO'];
in another I try to read it since I need it to be able to perform an INSERT INTO, and I do it as follows:
session_start();
$usuID = $_SESSION[usuID];
$query3 = mysqli_query($con,"INSERT INTO solicitudes (FECHA_SOLICITUD, ESTADO_SOLICITUD, COD_CLIENTE, COD_SERVICIO, COD_USUARIO) VALUES ('$fecha', '$estado', '$cliente', '$servicio', '$usuID')");
I don't understand where I am failing since the browser sends me a fatal error that says that the "usuID" constant has not been defined yet and according to what I have consulted on this web page: https://www.mclibre.org/ consult/php/lessons/php-sessions.html if I am correct, maybe you can teach me how to solve this part, thanks.