Server operating systems: Windows Server 2003
PHP Version 5.3 VC6
Database: SQL Server 2008
Assuming there are 4 fields (ID, name, content, flag) in table A, this record is not available when the content length is very long. This is what the PHP code says.
$stmt = sqlsrv_query($sql);$rs = array();where($res = sqlsrv_fetch_array($stmt)){ $rs[] = $res;}
The returned $rs is empty.
But the same code on PHP 5.4 vc9 "Local development environment, database connected server database" can be queried. So where is the configuration wrong? Or am I wrong? For advice
Reply content:
Server operating systems: Windows Server 2003
PHP Version 5.3 VC6
Database: SQL Server 2008
Assuming there are 4 fields (ID, name, content, flag) in table A, this record is not available when the content length is very long. This is what the PHP code says.
$stmt = sqlsrv_query($sql);$rs = array();where($res = sqlsrv_fetch_array($stmt)){ $rs[] = $res;}
The returned $rs is empty.
But the same code on PHP 5.4 vc9 "Local development environment, database connected server database" can be queried. So where is the configuration wrong? Or am I wrong? For advice