Database connectivity in php
We can connect MySql database in PHP.This is done with the mysqli_connect() function.
//Mysql connectivity with PHP
echo "Failed to connect to MySQL Database: " . mysqli_connect_error();
Database Connectivity in Php
This shows that how the database in MySql can be connected to PHP using PHP programming.