Create connection.php file and include all CRUD operation's file for connect database.
<?php
error_reporting(0);
$DB_HOST = 'localhost';
$DB_USER = 'root';
$DB_PASS = '';
$DB_NAME = 'mysql';
$conn = mysqli_connect($DB_HOST,$DB_USER,$DB_PASS,$DB_NAME);
// Check connection
if (!$conn) {
echo "Failed to Connect to MySQL: " . mysqli_connect_error();
}else{
echo "Success Connection to MySQL...!";
}
?>
Greate sir
ReplyDelete(Y)
DeleteGood job
ReplyDelete