In this tutorial I am going to show you how to sort MySQL table data in ascending or descending order to display them on HTML table on user interface (UI) using Codeigniter 4. I had also shown similar example using CodeIgniter 3. So when a user wants to see the data on UI either in…

Posted in Codeigniter MySQL

Sort MySQL Table Data in Ascending or Descending Order in CodeIgniter 4

I am going to show you an example on Angular CodeIgniter 4 REST API MySQL CRUD. CRUD is an acronym and stands for Create, Read, Update and Delete operations. REST or RESTful is a Representational State Transfer which defines an architectural style in software engineering. The REST API works on HTTP or HTTPS protocol. The…

Posted in Angular Codeigniter

CodeIgniter 4 REST API, MySQL and Angular 10 CRUD Example

Here I am going to show you how to build REST web services in PHP based Codeigniter 4 framework. CodeIgniter 4 is the upcoming version of the framework and it is still under development, intended for use with PHP 7.2 or higher version. REST is an acronym that stands for Representational State Transfer (RESTful), which…

Posted in Codeigniter

REST API CRUD Example in CodeIgniter 4 Framework

Here I am going to show you how to setup CodeIgniter 4 manually in your local environment. CodeIgniter framework version 4 is still under development and its size has been reduced significantly from its previous version. CodeIgniter 4 framework is intended to work with minimum version of PHP 7.2. You can also check the installation…

Posted in Codeigniter

How to setup CodeIgniter 4 manually

I am going to show how to select a row from MySQL database as randomly as possible, but not repeating it. So I am going to select unique row from the MySQL database using PHP based Codeigniter framework. The original tutorial could be found as selecting a random row every day from MySQL.

Posted in Codeigniter MySQL

Codeigniter – Select Unique Random Row Every Day From MySQL

Introduction Here in this tutorial I am going to show you how to create multiple thumbnails using PHP based Codeigniter framework from a single uploaded image. Codeigniter provides a file upload class that is used to upload single file or multiple files or even you can create thumbnail(s). This class also permits you to set…

Posted in Codeigniter

How to create multiple thumbnails from a single uploaded image in Codeigniter

Data Deletion In this tutorial I build an application using Codeigniter framework to fetch all records (for example, products) from MySQL database and display on the HTML table. I will put checkbox against each row on the table so that user will be able to select a particular row for deletion. I will also put…

Posted in AJAX Codeigniter jQuery MySQL PHP

How To Delete Multiple Rows From Table Using Codeigniter AJAX jQuery MySQL

Introduction In this tutorial we will create an example on server sent events (SSE) with CodeIgniter – push notifications. Sometimes we face situations, where the application needs only one way communication, i.e., sending data from server to the client and for this Spring provides a simpler solution using Server Sent Events (SSE). SSE is a…

Posted in Codeigniter JavaScript PHP

Server Sent Events with CodeIgniter – Push Notifications

Introduction This tutorial will show you how to login logout to/from an application with remember me functionality in CodeIgniter framework using set_cookie() function. You can use get_cookie() to retrieve the value for a given key from cookie and delete_cookie() function to delete from cookie for a given key. Sometimes you may need to remember username…

Posted in Codeigniter PHP

CodeIgniter Login Logout With Remembr Me

Introduction Here I am going to show you how to create photo gallery using PHP framework called Codeigniter. Photo gallery also known as image gallery, media gallery or photo album, which is used to manage your photos. You can view the images one by one from a list of images in a gallery. In this…

Posted in Codeigniter

CodeIgniter jQuery Photo Gallery

Introduction Angular + CodeIgniter file upload example will show here how to upload a file to server. Here CodeIgniter will be responsible for storing the file into a server location and Angular will be used on UI side to interact with end users, who will browse and select a file for uploading. We will create…

Posted in Angular Codeigniter File Upload

Angular + CodeIgniter File Upload Example

Introduction In this post we will see Bootstrap Datatable CRUD using Codeigniter, MySQL and AJAX. We have also seen similar implementation in our previous post on DataTable CRUD Example using Codeigniter, MySQL and AJAX, but here we will use Bootstrap Datatable to implement the similar functionalities, where we have the following features: Loading data from MySQL…

Posted in AJAX Bootstrap Codeigniter MySQL

Bootstrap Datatable CRUD using Codeigniter, MySQL, AJAX