How to insert data into database with CodeIgniter

In this post, I will show inserting data into database table using CodeIgniter. We gonna use CodeIgniter Active Records Pattern. This pattern allows information to be retrieved, inserted, and updated in your database with […]

How to setup maintenance mode in CodeIgniter

In this post, I will show you how easy it is to setup maintenance mode in CodeIgniter using CI’s hooks. while updating your web application its always better to show meaningful maintenance message to the end users, […]

DomPDF Library using Codeigniter 3

In this tutorial, we will discuss how to generate PDF using DOMPDF with Codeigniter Framework version 3 and composer(PHP dependency manager). From the authors of Dompdf – Dompdf is an HTML to PDF converter. At its […]

Saving Session Data to a Database in CodeIgniter3

CodeIgniter natively support storing session in the database. You do not need to do any changes in code, just a few configurations and it will work. Storing session data in the database will increase the security of the […]

Uploading file via FTP using CodeIgniter

We are going to discuss how to upload files to the remote server in CodeIgniter using CI’s FTP library. This library has limitations – SFTP and SSL FTP protocols are not supported, only standard FTP. CodeIgniter’s […]

CodeIgniter _remap function?

CodeIgniter permits you to override its default routing behavior through the use of the _remap() function. As you already knew the second segment of the URI typically determines with function is in the controller get called […]

How to write Sub Queries in Codeigniter Active Record ?

Codeigniter didn’t provide an option to use subqueries with active record class. So today I would like to provide simple and possible comprehensive techniques on “creating Sub Queries with Codeigniter Active Record”. […]

How to retrieve data from database in CodeIgniter?

In this CodeIgniter tutorial, I will show you how to fetch data from database using model, view, controller approach. As usual, we need need to setup database connection in order to perform actions like select, insert, […]

How to JOIN Tables in Codeigniter

I am gonna use CodeIgniter’s active record class to generate Join Queries in this tutorial. Because by using AR class we can write complex joins very easily and a major benefit to using the Active Record features […]

Codeigniter Image Watermark

You can easily watermark images in CodeIgniter by using CI’s image manipulation class. In CI Watermarking is only available using the GD/GD2 library. CI’s image manipulation library allows us to do image watermark […]

How to use PHPExcel with CodeIgniter?

PHPExcel is a pure PHP library for reading and writing spreadsheet files and CodeIgniter is one of the well known PHP MVC Framework. In this tutorial, I am gonna show you how to Integrate PHPEXcel library in CodeIgniter […]

How to connect to MySQL database in CodeIgniter?

Yesterday someone asked me to make a tutorial about Connecting to Database in CodeIgniter Framework. In order to make connection to database in Ci , we need to do only few configuration changes in your database.php config […]

Php CodeIgniter Server Side Form Validation Example

Today we are going to learn more about server side validation using php codeigniter framework.Follow the below steps to do the server side validations. Server side validation is most secure way than client side validation, […] Protection Status