Category: PHP

With like unlike system you can allow the registered users to give a feedback on a content.

It helps the webmaster to track the user’s response to the contents whether they like or not and take an action.

In this tutorial, I am creating a like unlike functionality on the page with AnguarlJS and PHP where I will list all records and display total like unlikes count following with buttons.

Like unlike Rating System with AngularJS and PHP

AJAX AngularJS PHP

Pagination on the page improves the user experience when there is a large number of records are available.

CodeIgniter has provided a library for effectively handle the pagination functionality.

In this tutorial, I am using the pagination library to create the paginated list of fetched result from MySQL database.

Make pagination with CodeIgniter Framework

PHP

AJAX Jquery PHP

You can allow multiple files selection by creating more than one file element but you can easily do this with just single file element.

It consumes less space and easy to handle but for this, you need to customize the element.

In this tutorial, I am using AngularJS and PHP to upload multiple files to the servers.

I am creating a custom directive to handle file selection in the AngularJS.

Multiple files upload with AngularJS and PHP

AJAX AngularJS PHP

Handle session is very important when creating a member based website where the user needs to register and login to their account to access website content.

With the help of session, it is easier to identify the user and display the content accordingly.

In Codeigniter, require loading session library to start work with Session. There are inbuilt methods are available that makes easier to handle session operations.

How to handle session in Codeigniter

How To PHP

To prevent the same user login on multiple systems or web browsers you need to generate a token on each successful login attempt and store in the database table user wise.

Also, require using a SESSION variable to store the current token and check with the stored token in the database table.

If it not matched then log out the user.

Prevent multiple login of same account with PHP

PHP

AJAX Jquery PHP

Within the project sometimes requires using multiple MySQL databases. It may be the existing database from other project or the new one.

To handle this with PHP requires to create separate connections for each database and use the connection accordingly while manipulating data in MySQL database.

Connect to multiple mysql database with PHP

DataBase PHP

Setting up multi-language support is a good way to attract the new users to your website but there is no direct way to implement it to the website.

You need to write extra code and update existing hard coded text content to enable multiple languages.

For maintaining this you can either create separate files or use MySQL table.

In this tutorial, I will create simple examples to show multi-language support on the website.

Implement Multi-language support to website with PHP

PHP

On WordPress, you have noticed that while writing a blog post it will autosave the post as a draft after the specified interval.

In this tutorial, I am creating the similar type of functionality with jQuery and AJAX. Where I check for any value update in input element if it is then set an interval of 5 seconds.

Send an AJAX request to save data when the interval gets completed.

Autosave data after specific time with jQuery and AJAX

AJAX Jquery PHP