Codeigniter Transaction Example

This tutorial will show you how we can use transaction in Codeigniter. We know that transaction is an important part of persistence storage media because we may save, update or delete data from persistence storage area. For example, in database we may need to update multiple tables or we may require to delete from multiple tables, hence we may face some inconsistency during database tables updation or deletion from database tables. During updation few tables may be updated and few tables may not be updated. Similarly, in case of deletion few tables may get deleted and few may not. So data will be in inconsistent state. Therefore, we want either a unit of work will be carried out completely or none. Hence the transaction is required to make it happen. Continue reading “Codeigniter Transaction Example”