How to handle DB connection errors |
Unfortunately, it does not work, because when I use $this->load->database($db_config) CodeIgniter already attempts the connection and the error occurs. I can't test for the error before the connection is successful. This is what's bothering me. However, I think that I will have to find another way to do this.
|
Messages In This Thread |
How to handle DB connection errors - by guilhermemuller - 05-15-2017, 11:42 AM
RE: How to handle DB connection errors - by InsiteFX - 05-15-2017, 01:03 PM
RE: How to handle DB connection errors - by guilhermemuller - 05-16-2017, 06:04 PM
RE: How to handle DB connection errors - by guilhermemuller - 05-18-2017, 07:28 AM
RE: How to handle DB connection errors - by InsiteFX - 05-18-2017, 08:34 AM
RE: How to handle DB connection errors - by reactionstudio - 05-22-2017, 04:33 AM
|