Welcome Guest, Not a member yet? Register   Sign In
Test for database connection success
#1

[eluser]Aquillyne[/eluser]
I want to connect to my database with $this->load->database(), but I want to be able to control what happens if it fails (rather than it throwing up an error).

A try/catch block doesn't seem to work. The problem appears to be that CI has custom error handling here.


Messages In This Thread
Test for database connection success - by El Forum - 08-01-2008, 08:57 PM
Test for database connection success - by El Forum - 08-02-2008, 01:20 PM
Test for database connection success - by El Forum - 08-02-2008, 02:36 PM
Test for database connection success - by El Forum - 08-02-2008, 05:59 PM
Test for database connection success - by El Forum - 08-02-2008, 06:04 PM
Test for database connection success - by El Forum - 08-02-2008, 08:14 PM
Test for database connection success - by El Forum - 11-02-2008, 09:14 AM
Test for database connection success - by El Forum - 11-02-2008, 09:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB