Collections:
Turning Off PHP Warning Messages for MSSQL Connection
How To Turn Off Warning Messages during PHP Execution?
✍: Guest
If don't want see warning messages generated from the PHP engine when executing PHP scripts, you can change the error_reporting setting in the php.ini configuration file.
Open php.ini and change the following lines:
;error_reporting = E_ALL & ~E_NOTICE error_reporting = E_ALL & ~E_WARNING
Now run the script in the previous tutorial again, you will not see the warning messages from the PHP engine:
Execution failed: Error: Cannot drop the table 'fyi.center', because it does not exist or you do not have permission.
⇒ Returning Result from Query with MSSQL Connection
⇐ mssql_get_last_message() - Retrieving Error Messages
⇑ SQL Server FAQs - PHP MSSQL Functions - Connections and Query Execution
2024-03-23, 2531🔥, 0💬
Popular Posts:
How To Convert Numeric Expression Data Types using the CAST() Function in SQL Server Transact-SQL? I...
How to detect the collation coercibility associated to a given character string using the COERCIBILI...
How To Calculate Age in Days, Hours and Minutes in SQL Server Transact-SQL? On many Web sites, news ...
How REAL and FLOAT Literal Values Are Rounded in SQL Server Transact-SQL? By definition, FLOAT(n) sh...
How To Provide Default Values to Function Parameters in SQL Server Transact-SQL? If you add a parame...