DayZ-Stat-Server/consql.php

24 lines
539 B
PHP
Raw Normal View History

2021-01-31 13:16:02 +01:00
<?php
$servdb = "";
$userdb = "";
$pdb = "";
$dbname = "";
2021-01-31 18:56:08 +01:00
$table = "StatServer_20";
2021-01-31 13:16:02 +01:00
2021-01-31 18:56:08 +01:00
$StatServer = $table;
2021-01-31 21:28:04 +01:00
2021-01-31 18:56:08 +01:00
$con = new mysqli($servdb, $userdb, $pdb, $dbname);
2021-01-31 18:12:00 +01:00
2021-01-31 13:16:02 +01:00
if ($con->connect_error) {
2021-01-31 21:28:04 +01:00
echo (" SQL not active <font color=orange> // Function not ready yet </font> ");
// echo ("<font color=red> ...Connection failed need to set MYSQL </font><br>");
// die("Connection failed: " . $con->connect_error);
2021-01-31 13:16:02 +01:00
}
else
{
2021-01-31 18:12:00 +01:00
// echo ("Connect Successfully");
2021-01-31 13:16:02 +01:00
}
2021-01-31 18:12:00 +01:00
2021-01-31 13:16:02 +01:00
?>