Delete Multiple Selected Records with PHP

It is time-consuming to delete records one by one from the list.

To make the deletion process easier for the users by allowing them to select multiple records using checkboxes.

Execute delete query according to the selected checkboxes.

In the demonstration, I am displaying records from the MySQL database table and add a checkbox on each row. Use single submit button to delete selected records with PHP.

Delete Multiple Selected Records with PHP

Read more

Live username Availability check with AngularJS in CodeIgniter

If there is the registration form on the website then you need to make sure that the username or email must be unique.

The user will login with the selected username next time when it comes to the website.

You can either check it after submitting the form or while entering it.

In the demonstration, I am creating a simple registration form in CodeIgniter where check the entered username with Angular and insert the record if the username is available.

Live username Availability check with AngularJS in CodeIgniter

Read more

Connect with Multiple Databases in CodeIgniter 3

A database is one of the common requirements while building a dynamic application. It uses to store related data in an organized manner.

You can use more than one database in your application.

If you are using CodeIgniter Framework then you need to define the database connection details separately for multiple databases and load it explicitly for performing operations on the database.

Connect with Multiple Databases in CodeIgniter 3

Read more

How to Import Data in MySQL with CodeIgniter 3

CSV files are easier to maintain and can be used for export and import data in the web application.

For data import first, need to allow the users to browse and upload the file. In CodeIgniter, there is upload library available that makes it easier to handle file uploads.

In this tutorial, I show how you can import data of CSV file in the MySQL database table in the CodeIgniter 3 project.

How to Import Data in MySQL with CodeIgniter 3

Read more