PHP CRUD with Authentication

PHP CRUD with Authentication

In last couple of posts, we discussed about CRUD and authentication using PHP and MySQL. Our example was an Address Book application. You can check back those posts here and here. Now its the time to combine the two and create a practical example. CRUD and authentication are very common tasks in web development. Most […]

PHP CRUD example with JS and CSS

PHP CRUD example with JS and CSS

In our previous blog, we created a simple CRUD application. To introduce some more features, we have created this new application. We have added CSS and JavaScript for better user interface. But the main code base is almost same. As in before, we will follow following steps to complete our application: Create Database and Table […]

Page redirect in PHP

Page redirect in PHP

The header() function can be used to send a new HTTP header to client, so to redirect it to a new page. Example is: Alternately JavaScript can be used within PHP or HTML code to do the same:

Learn how to build a CRUD application with PHP and MySQL

Learn how to build a CRUD application with PHP and MySQL

In this example we will create a simple address book application to understand CRUD operations in PHP and MySQL. As you may already know that CRUD stands for Create, Retrieve, Update and Delete operations. We can use these operations to add, manipulate and delete database records. We will follow following steps to complete our application: […]

How to check client IP address in PHP

How to check client IP address in PHP

We can use $_SERVER variable to check the IP address. For example, $_SERVER[“REMOTE_ADDR”] would return the client’s IP address. $_SERVER variable is an array containing information such as script headers, paths, and locations.

Understanding the Difference between include, include_once, require and require_once in PHP

Understanding the Difference between include, include_once, require and require_once in PHP

In PHP, there are multiple ways to include or require files into your code. It is important to understand the differences between these methods to use them effectively in your WordPress development projects. The four main functions used for this purpose are include, include_once, require, and require_once. The include function is used to include a […]