Connection to the MySQL server: CONNECTION STABLISHES IN BETWEEN PHP AND MYSQL

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");

?>




===================================== 

Post a Comment

0 Comments