I am changing my php project from using mysql to mssql.
when i use
if ($query->rowCount() == 0) {
with mysql it works well but with mssql i get a negative value which isnt correct.
So i tried to use $count = count($query->fetchAll());
with mssql which gives me a positive value similar to when using mysql but i get an error
I am using Php drivers for sql server
Fatal error: Uncaught PDOException: SQLSTATE[IMSSP]: There are no more rows in the active result set. Since this result set is not scrollable, no more data may be retrieved.
Need some help with this issue