How does a transaction work in CodeIgniter? can i stop the transaction and start each other?
See my example
$this->db->trans_begin(); $a = 'UPDATE ......'; RETURN TRUE $b = 'INSERT INTO......'; RETURN FALSE $this->db->trans_rollback();
My first transaction will always return FALSE (even if this is true, I need to roll it back), now I need to close this transaction and start it again.
The problem is $this->db->trans_status() , it always returns FALSE in the second transaction (even after $this->db->trans_rollback() or trans_off() ).
what am I doing wrong? Please help me.
I am using mySql as underlying database.
source share