PHP is widely used by many developers today and it's one of the easiest language to
learn. This tutorial will help you to learn the basic CRUD (Create, Read, Update,
Delete) operations in PHP using MYSQL.
Create the DB(Database) file
Create the DB as 'php_crud' and run the following SQL query to create a table
users inside the MySQL 'php_crud' database.
SQL query to create a table named users
CREATE TABLE users (
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(100) NOT NULL,
address VARCHAR(255) NOT NULL,
age INT(10) NOT NULL
Now, It's time to create the DB config.php file as shown below