Step 1. Create Database "demo".Go through PHPMyAdmin and create database.
After logging into your phpMyAdmin page.We will create a database named demo for our database.
Connect MySql database using PHP in PDO with the following code:
define('DB_HOST', 'localhost'); // Host name
You can connect MySql database using PHP with the following code:
<?php $con = mysqli_connect("localhost","root","","jtable");
PHP is a server side scripting language. that is used to develop Static websites or Dynamic websites or Web applications. PHP stands for Hypertext Pre-processor, that earlier stood for Personal Home Pages.