I\'m using Codeigniter transactions
$this->db->trans_start();
$this->db->query(\'AN SQL QUERY...\');
$this->db->trans_complete();
>
Note: Make sure to use $this->db->trans_begin()
when running manual transactions, NOT $this->db->trans_start()
.
$this -> db -> trans_begin();
$this -> utils -> insert_function ( $data );
$this -> utils -> update_function2 ( $test );
$this -> db -> trans_complete ();
Certify in case use MySql, use in InnoDb Format