Welcome Guest, Not a member yet? Register   Sign In
How to handle DB connection errors
#2

You can check for an error using:

PHP Code:
$error $this->db->error(); 

You can check the connection using this:

PHP Code:
$connected $this->conn_id

You can always view the CodeIgniter source files to learn a lot of hidden gems also...
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: How to handle DB connection errors - by InsiteFX - 05-15-2017, 01:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB