Good Day,
Before anything else, I can successfully connect to my database and I can print out all the data from my table..
This is my problem, I am experiencing a warning and fatal error when I try to do this:
$sql = sqlsrv_query("SELECT [name] FROM [Test].[dbo].[TestTable] WHERE [name] = '$user', $conn);
$rows = sqlsrv_num_rows($conn,$sql);
This is the error that I'm getting,
sqlsrv_query() expects parameter 1 to be resource....Param count and argument count don't match
Aucun commentaire:
Enregistrer un commentaire