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, 2922🔥, 0💬
Popular Posts:
How To Concatenate Two Character Strings Together in SQL Server Transact-SQL? Concatenating two char...
How To Find Out What Privileges a User Currently Has in Oracle? Privileges granted to users are list...
How To Select All Columns of All Rows from a Table with a SELECT statement in SQL Server? The simple...
What Are the Differences between DATE and TIMESTAMP in Oracle? The main differences between DATE and...
What Happens to an Arithmetic Operation with Two Different Data Types in SQL Server Transact-SQL? Wh...