<filename>loginsystem/dbconnect.php<?php
$server="localhost";
$username="root";
$password="";
$database="user";
$conn=  mysqli_connect($server,$username,$password,$database);

if($conn){
    echo"success";
}
else{
    die("error".mysqli_connect_error());
}

?>