Database Connection Easy
<?php
$hostname = 'localhost';
$username ='root';
$userpass ='';
$dbname ='uni';
$con= mysqli_connect($hostname,$username,$userpass) or die('Database Connection error');
mysqli_select_db($con,$dbname);
?>
$hostname = 'localhost';
$username ='root';
$userpass ='';
$dbname ='uni';
$con= mysqli_connect($hostname,$username,$userpass) or die('Database Connection error');
mysqli_select_db($con,$dbname);
?>
Comments
Post a Comment