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;
|
|
|
|
$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 18:12:00 +01:00
|
|
|
// die("Connection failed: " . $con->connect_error);
|
|
|
|
echo ("Connection failed with sql / need to set MYSQL");
|
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
|
|
|
|
|
|
|
?>
|