Server Operating System: 5.3vc6 database of WindowsServer2003php: sqlserver2008 assume that table A currently has four fields (id, name, content, flag). When the content length is too long, this record cannot be found. Php code is written in this way {code...}... Server OS: Windows Server 2003
Php vc6 5.3
Database: SQL server 2008
Assume that table A contains four fields (id, name, content, and flag). When the content length is too long, this record cannot be found. Php code is written in this way.
$ Stmt = sqlsrv_query ($ SQL); $ rs = array (); where ($ res = sqlsrv_fetch_array ($ stmt) {$ rs [] = $ res ;}
$ Rs returned is null.
However, the same code can be queried on php 5.4 vc9 [local development environment, server database connected to the database. So where is the configuration incorrect? Or am I wrong? Ask for advice!
Reply content:
Server Operating System: Windows Server 2003
Php vc6 5.3
Database: SQL server 2008
Assume that table A contains four fields (id, name, content, and flag). When the content length is too long, this record cannot be found. Php code is written in this way.
$ Stmt = sqlsrv_query ($ SQL); $ rs = array (); where ($ res = sqlsrv_fetch_array ($ stmt) {$ rs [] = $ res ;}
$ Rs returned is null.
However, the same code can be queried on php 5.4 vc9 [local development environment, server database connected to the database. So where is the configuration incorrect? Or am I wrong? Ask for advice!