P
P
Paka2017-10-19 09:47:49
SQL Server
Paka, 2017-10-19 09:47:49

Why doesn't sqlsrv_fetch_array() work on php7 + MSsql?

I connect to the database, ok.
sqlsrv Object
(
[connect] => Resource id #10
[result] =>
[error] =>
[log] => Array
(
)
)
Making a query, ok. I receive a response resource.
sqlsrv_query($sqlsrv->connect, $query)
Resource id #11
Trying to fetch data. Nifiga...
sqlsrv_fetch_array($sqlsrv->result)
bool(false)
Checking if there is data in the response resource? There is data.
sqlsrv_has_rows(): 1
How is that?
PS Machine on latest CentOS + php7.1 +
Microsoft SQL Server 2016 (SP1-CU2) (KB4013106) - 13.0.4422.0 (X64)
Mar 6 2017 14:18:16
Copyright (c) Microsoft Corporation
Enterprise Edition (64-bit) on Windows Server 2016 Standard 6.3 (Build 14393: )

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question