Collections:
Turning Off PHP Warning Messages for ODBC 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: State: S0002 Error: [Microsoft][ODBC SQL Server Driver][SQL Server] Cannot drop the table 'fyi.center', because it does not exist or you do not have permission.
⇒ Returning Result from Query with ODBC Connection
⇐ odbc_errormsg() - Retrieving ODBC Error Messages
⇑ SQL Server FAQs - PHP ODBC Functions - Connection and Query Execution
2024-06-30, 3034🔥, 0💬
Popular Posts:
How To Query Tables and Loop through the Returning Rows in MySQL? The best way to query tables and l...
What are DDL (Data Definition Language) statements for tables in SQL Server? DDL (Data Definition La...
How To View Data Files in the Current Database in Oracle? If you want to get a list of all tablespac...
How To Change the Password for Your Own User Account in MySQL? If you want to change the password of...
How To Drop an Index in Oracle? If you don't need an existing index any more, you should delete it w...