Monday, February 18, 2019

PHP $ MYSQLI Database

With PHP, you can connect to and manipulate databases.
MySQL is the most popular database system used with PHP.


INPUT:

<?php 

$db = mysqli_connect('localhost', 'root','','registration');


if($db = true){
echo "Connection Successful";
}
else{
echo" Connection Failed";
}
 ?>

OUTPUT:

Connection Successful

No comments:

Post a Comment