Hello everyone, this this simple way to connect MariaDB with PHP,
Here I explain with simple example.
Example:
<?php
$connection=mysqli_connect("hostname","username","password");
$db = mysqli_select_db("databasename");
if (mysqli_connect_errno())
{
echo "Connection Failed with MariaDB:" . mysqli_connect_error();
}
?>
Enjoy!
No comments:
Post a Comment