How to connect using mysqli_connect in php

<?php

 //echo "I am Working Now";
 
 $dbhost = "localhost";
 dbuser = "root";
 $dbpass = "";
 $dbname = "chandan_test"

 $link = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);

 $ss = mysqli_fetch_assoc(mysqli_query($link,"select * from user"));
 print_r($ss);
?>

Leave a Comment