<?php
$server_name = "localhost";  // as it is or depend on port if you are using wamp
$user_name = "username";
$password = "password";   // Password
$dbname="database_name";  // Database NAME
// Creating new connection to database
$conn = mysqli_connect($server_name , $user_name , $password, $dbname);

// Check connection is connected Successfully or Not
if ($conn->connect_error)
 {
    die("Connection to database failed :-  " . $conn->connect_error);
 } 
echo "successfully Coonected to Database.";
?>

Recent Comments

0 Comments

Sign In To Leave a Comment

Type your Comment below and click to send comment


error: function(jqXHR, textStatus, errorThrown) { alert(errorThrown); }