-1
You need the id_usuario
which is logged in, I believe you already have it in hand, because the problem is here:
$id_usuario = $_SESSION["id_usuario"];
$consulta = "SELECT * FROM usuarios WHERE id_usuario = $id_usuario";
Missed you define equality within the consultation.
Now a doubt of mine, what is the need for two equal variables?
$consulta = $consulta =
post code instead of image!
– Wees Smith