CONNECTION BETWEEN PHP AND MYSQL (Connection to the MySQL server)
1. Connection to the MySQL server in PHP
(database.php)
<?php
$servername='localhost';
$username='root';
$password='';
$dbname = "pan1";
$con=mysqli_connect($servername,$username,$password,"$dbname");
if(!$con){
die('Could not Connect My Sql:' .mysqli_error());
}
echo ("connect successfully");
?>
=====================================
0 Comments