Error Handling with very basic SQL query |
Hi Guys,
I have built this simple code which uses a specific database configuration and then runs SELECT query on the EMPLOYEE table. This table has very huge database and I believe because of that, the db is throwing error. Which is fine. Below is my code. I have done the error handling code in this but it still throws attached error on browser. I want it to suppress throwing error on browser and catch it into variable so I can display it properly. Because I would like to use this code for an API server. Ignore the part where the code is commented for $DB_MYSQL. That is for future use, I am going to switch database on specific occassions. PHP Code: $DB_MSSQL = $this->load->database('mssql_db', TRUE); |
Messages In This Thread |
Error Handling with very basic SQL query - by aslamdoctor - 04-21-2019, 08:05 AM
RE: Error Handling with very basic SQL query - by InsiteFX - 04-21-2019, 09:43 AM
RE: Error Handling with very basic SQL query - by aslamdoctor - 04-21-2019, 09:46 AM
RE: Error Handling with very basic SQL query - by php_rocs - 04-21-2019, 11:08 AM
RE: Error Handling with very basic SQL query - by aslamdoctor - 04-21-2019, 08:47 PM
RE: Error Handling with very basic SQL query - by php_rocs - 04-22-2019, 01:16 AM
RE: Error Handling with very basic SQL query - by aslamdoctor - 04-22-2019, 01:28 AM
RE: Error Handling with very basic SQL query - by InsiteFX - 04-22-2019, 04:24 AM
RE: Error Handling with very basic SQL query - by aslamdoctor - 04-22-2019, 06:03 AM
RE: Error Handling with very basic SQL query - by InsiteFX - 04-22-2019, 08:17 AM
|