<?php
<!-- Connection to the Server -->
$conn = mysqli_connect("localhost:4022", "root", "password", "login");
<!-- Connection to the Server end -->
if (!$conn){
die("Connection failed:".mysqli_connect_error());
}
?>