-2
Hello folks using PHP code below I can insert rows in my SQL Server table:
sqlsrv_query( $conn, "INSERT INTO usuarios (login, senha) VALUES ('new', 'mano')");
However, I would like to return some value and play in a text. I tried the command below but the corresponding login of that number is not showing.
$stmt = sqlsrv_query( $conn, "SELECT login FROM usuarios WHERE numero = 8");
Appears: The name is: Resource id #3
Since in the database, the login number 8 is Joao.
Then you should show up: The name is Joao
Is the number field integer? If not, put 8 inside single quotes
– Woton Sampaio
Yeah, he’s like an account ID
– Luiz Nascimento
You don’t understand the doubt you are having. A barely explicit login and password. In the query puts everything you want to "pull" from SQL
– White
I can enter, but I couldn’t select
– Luiz Nascimento