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, 2121🔥, 0💬
Popular Posts:
What Is the Difference Between GETDATE() and GETUTCDATE() in SQL Server Transact-SQL? The difference...
How To Create a Dynamic Cursor with the DYNAMIC Option in SQL Server Transact-SQL? If the underlying...
Can You Drop an Index Associated with a Unique or Primary Key Constraint in Oracle? You can not dele...
Where to find answers to frequently asked questions on Conditional Statements and Loops in SQL Serve...
How To Format Time Zone in +/-hh:mm Format in SQL Server Transact-SQL? From the previous tutorial, y...