MySQLi database Connection in PHP


Example

<?php
// Create connection
$conn = mysqli_connect("localhost","root","admin","mydb");
?>

This code also use as database connection but it will not show the output message that it is successfully connect or not.

Here