PHP MYSQLi Connection String


$con = mysqli_connect("localhost","username","password","database");

// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: Error is " . mysqli_connect_error();
}

Leave a Reply

Your email address will not be published. Required fields are marked *