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

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 various preferences, such as, destination where the file and thumbnail will be uploaded, restriction on file types, restriction on file size, whether a file name should be encrypted or not, maximum length of the file…

Continue

How to delete multiple rows from table using Codeigniter, AJAX, jQuery, MySQL

Introduction In this tutorial we build an application using Codeigniter framework to fetch all the products from MySQL database and display on the HTML table. We will put checkbox against each row on the table so that user will be able to select a particular row for deletion. We will also put a checkbox on the table header and selecting this checkbox all rows on the table will be selected for deletion. We are using jQuery to check or check the checkbox. If user selects manually all checkboxes for rows…

Continue

Server Sent Events with CodeIgniter – Push Notifications

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 technology that allows you to stream data from server to the browser (Push Notifications) within one HTTP connection in one direction. For example, pushing stock price changes in real-time or showing progress of long-running process…

Continue

CodeIgniter jQuery Photo Gallery

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 example I will use some sample images to create photo gallery using CodeIgniter and jQuery frameworks. We will have corresponding thumbnails for images. The thumbnail images will be shown on the web page in gallery…

Continue

Angular + CodeIgniter File Upload Example

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 CodeIgniter REST API and will integrate with Angular to upload a file.

Continue

Bootstrap Datatable CRUD using Codeigniter, MySQL, AJAX

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 database in HTML table Pagination – each page shows 10 records Searching Filtering Sorting Creating new record Updating the existing record Deleting the existing record In this example we will use Bootstrap 4 Datatable API…

Continue

Codeigniter MongoDB CRUD Example

Introduction Here we will see Codeigniter MongoDB CRUD example, where CRUD means Create, Read, Update and Delete. So basically we will perform creating new user, reading users/user, update existing user and deleting existing user operations into MongoDB. MongoDB is one of the widely used NoSQL(Not only SQL) database in market today. MongoDB is a document database with the scalability and flexibility that you want with the querying and indexing that you need. Often we come across a situation where we end up using MongoDB with PHP based framework Codeigniter.

Continue