Users table: iduser, name, user, password, group In the login you must enter username, password and group
<?php
include('00_conn.php');
$consulta = "SELECT * FROM $t98 WHERE (98_username= '$usuario' AND 98_clave = '$clave' AND '98_grupo = '$grupo')";
$respuesta = mysqli_query($conexion, $consulta);
if( $fila = mysqli_fetch_row($respuesta) ) fila
{
if (password_verify($clave,$fila)) {
session_start(); //habilita uso de sesiones
$_SESSION['username'] = $username;
$_SESSION['grupo'] = $grupo;
$_SESSION['username'] = $username; }
}
?>
Specifically: how can I get the Iduser and take it as a variable to embed it in every intervention I have in the bbdd load? I hope I was clear! Thank you very much!