Skip to content
Advertisement

SQL-Server Select returning null on PHP

I have a query that returns all the data while running at MSSQL, but when I try to get the result with php code it returns null

SELECT:

JavaScript

PHP CODE:

JavaScript

Advertisement

Answer

I’ve found the problem

The problem was the encoding, I put the $query inside of utf8_encode(), and now it is returning the results.

Thank you all for your time.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement