diff --git a/consql.php b/consql.php index 514fb77..a2121f9 100644 --- a/consql.php +++ b/consql.php @@ -5,14 +5,15 @@ $dbname = ""; $con = new mysqli($servdb, $userdb, $pdb, $dbname); + if ($con->connect_error) { - die("Connection failed: " . $con->connect_error); + // die("Connection failed: " . $con->connect_error); + echo ("Connection failed with sql / need to set MYSQL"); } else { - //echo ("Connect Successfully"); + // echo ("Connect Successfully"); } -// $query = "SELECT date, numplayers FROM StatServer"; // select column -// $aresult = $con->query($query); + ?> diff --git a/index.php b/index.php index bb0e0b5..0396d3e 100644 --- a/index.php +++ b/index.php @@ -2,8 +2,8 @@ $page = $_SERVER['PHP_SELF']; $sec = "300"; -// include_once('./consql.php'); - include_once('./config.php'); + include_once('./consql.php'); + include_once('./config.php'); ?> @@ -11,22 +11,16 @@ $sec = "300"; - - + - - <?php echo "$title"; ?> - - + - - - +