<?php
//hostname,username,password,database
$connection = mysqli_connect('localhost', 'root', '', 'loginapp');
if(!$connection){
die('connection failed')
}
<?php
//hostname,username,password,database
$connection = mysqli_connect('localhost', 'root', '', 'loginapp');
if(!$connection){
die('connection failed')
}