php database

Asked

Viewed 25 times

-1

someone can help me,....

inserir a descrição da imagem aquiinserir a descrição da imagem aqui

  • post code instead of image!

1 answer

0


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 = 
  • 1

    '$query = $query = ' was typo, otherwise helped me a lot, thanks bro

  • Good, buddy, anything just post there in the group.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.