Welcome aboard! We are happy you are here and wish you good net-raft!
$servername = "";
$username = "";
$password = "";
$dbname = "";
// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
// Check connection
if (!$conn) {
die('<script type="text/javascript">alert("Error of connection !")</script>');
}
something ...
mysqli_close($conn);
The most helpful PHP solutions
detect browser phpPHP Click to see more ... 4.6K 408