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, 2523🔥, 0💬
Popular Posts:
What are DDL (Data Definition Language) statements for tables in SQL Server? DDL (Data Definition La...
How to format a number of bytes in a human-readable unit using the FORMAT_BYTES() function? FORMAT_B...
How to set database to be READ_ONLY in SQL Server? Databases in SQL Server have two update options: ...
How To Change the Name of a Database User in SQL Server? If you want to change the name of an existi...
How To Create a Table Index in Oracle? If you have a table with a lots of rows, and you know that on...