Hello everyone using the PHP code below I can insert rows into 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 it does not appear the login corresponding to that number.
$stmt = sqlsrv_query( $conn, "SELECT login FROM usuarios WHERE numero = 8");
Appears: The name is: Resource id # 3
Since in the database, the number 8 login is Joao.
Then it should appear: The name is: Joao