Quantcast
Channel: Databases – PHP DriLL
Viewing all articles
Browse latest Browse all 10

How to use Database Transactions in Codeigniter ?

$
0
0

In order to use transactions in your database queries. You need to use Codeigniter’s transaction methods provided by db library of Codeigniter. The basic snippet is as follows: $this->db->trans_start(); # Starting Transaction //Do your Stuff Here i.e. Queries you wants to run on database $this->db->trans_complete(); # Completing transaction if($this->db->trans_status() ===…

Read More

The post How to use Database Transactions in Codeigniter ? appeared first on PHP DriLL.


Viewing all articles
Browse latest Browse all 10

Trending Articles