Welcome Guest, Not a member yet? Register   Sign In
how to catch db error
#9

PHP Code:
if ( ! $this->db->simple_query('SELECT `example_field` FROM `example_table`'))
{
        $error $this->db->error(); // Has keys 'code' and 'message'

What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
how to catch db error - by amansusanto - 10-11-2019, 07:33 PM
RE: how to catch db error - by InsiteFX - 10-12-2019, 03:58 AM
RE: how to catch db error - by tp45 - 10-12-2019, 07:44 PM
RE: how to catch db error - by amansusanto - 10-13-2019, 07:26 PM
RE: how to catch db error - by InsiteFX - 10-14-2019, 04:21 AM
RE: how to catch db error - by amansusanto - 10-14-2019, 04:42 AM
RE: how to catch db error - by Chroma - 10-14-2019, 08:26 AM
RE: how to catch db error - by amansusanto - 10-15-2019, 08:28 PM
RE: how to catch db error - by InsiteFX - 10-16-2019, 04:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB