DayZ-Stat-Server/config/consql.php

31 lines
704 B
PHP
Raw Permalink Normal View History

2021-02-06 13:35:09 +01:00
<?php
//# Change with your credential here.
// Create Database first ;)
// Edit this bloc for SQL
2021-02-07 14:26:16 +01:00
$servdb = "localhost";
$userdb = "";
$pdb = "";
$dbname = "dayzstat";
$table = "StatServer_1";
2021-02-07 14:08:37 +01:00
2021-02-06 13:35:09 +01:00
// Don't edit below !
$StatServer = $table;
$con = new mysqli($servdb, $userdb, $pdb, $dbname);
if ($con->connect_error) {
// Display the alert box
// echo '<script>alert("...Connection failed with MYSQL")</script>';
echo "<center><font color=red> ...Connection failed with MYSQL </font></center>";
// die("Connection failed: " . $con->connect_error);
} else {
// echo "Connect Successfully";
}
?>