Category: PHP

With pagination, you can divide the large list of records into multiple pages.

The user will only view specific numbers of records at a time and require to navigate to view another list of pages.

You can create this with the only PHP or use jQuery AJAX to load pagination data without page reload.

In this tutorial, I am using jQuery AJAX to create pagination.

In the demonstration, I am creating a table layout to display the list of records and use next and previous buttons to navigate.

Ajax Pagination with jQuery and PHP


If you are allowing the user to login with their username and password then you have to make sure that every user has the unique username.

When the user goes for registration on your site check username either after form submits or check it with AJAX while entering.

In this tutorial, I am using jQuery AJAX to check username is available or not.

Check username availability with jQuery and AJAX

AJAX DataBase JQuery PHP

All programming language have decision-making statements which allow us to control the flow of the program.

You can define what code to be executed when the condition is TRUE and when it’s FALSE.

PHP decision making and switch statements


Form handling is one of the common tasks when creating the project in PHP. There are various methods are available for this and they are good according to the situation.

You can either pass the form data by URL and hidden them from the user.

Form handling with GET, POST, and REQUEST in PHP


The PHP script is used to make a website dynamic.

The code is written within the defined PHP tags otherwise it would not execute.

With tags, you can display the final output after data manipulation e.g. listing fetch records from MySQL database in the <table>, display value in HTML element, upload image, etc.

Embed PHP script in the Webpage


A variable is used to store information and it is accessible later in the program.

It has the user-defined name.

In PHP you don’t need to specify the Datatype of a variable it automatically converts its type.

In PHP there are different types of variable are available –

  1. Local variable
  2. Global variable
  3. Static variable

How to Create a variable in PHP


Comment is a line of text which is not read and executed as part of the program.

It is used to add notes to the source code or stop some block of code from execution.

When writing a long script it is very helpful by adding comments on each step about what the code does.

If some other using your code or updating then it is easier for the user to understand the working of code and saves the time.

In PHP there are two types of comments  –

  1. Single line
  2. Multi-line

How to Add Comment in PHP