Hi, I would like to know if it is possible to do the following:
$id_user = $_POST['id_user'];
$nivel_auth = $_POST['nivel'];
$hash_nivel = hash($nivel_auth);
$con = "INSERT INTO usuario (nivel) VALUES ($hash_nivel) WHERE id_user=$id_user;
Is it good to use hash
in $var
?
Would any "verification" error occur when checking the base de datos
to bring the id_nivel
stored?
As for security , does it improve or is it still equal to a $var
stored as such?