Welcome Guest, Not a member yet? Register   Sign In
Code igniter transaction don't rollback on SQL error
#2

You should be using an if else statement to check for an error.

PHP Code:
if ($this->db->trans_status() === FALSE)
{
 
       $this->db->trans_rollback();
}
else
{
 
       $this->db->trans_commit();

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

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Code igniter transaction don't rollback on SQL error - by InsiteFX - 05-04-2017, 03:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB