Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.147.69.25
<?php
include_once ("../consts.php");
if(!isset($_SESSION))
{
session_start();
}
// session_start();
// $servername = SERVERNAME;
// $username = USERNAME;
// $password = PASSWORD;
// var_dump($_SESSION['DBUSER'], $_SESSION['DBNAME']);die();
if(isset($_SESSION['DBUSER']) && $_SESSION['DBNAME'])
{
$databse = $_SESSION['DBNAME'];
$conn = new mysqli(SERVERNAME,USERNAME,PASSWORD,$databse);
if(!$conn)
{
die("Connection failed: " . mysqli_connect_error());
}
}
$databse = "logisys3_comexam";
$conndb = new mysqli(SERVERNAME,USERNAME,PASSWORD,$databse);
// var_dump($conndb);die();
if(!$conndb)
{
die("Connection failed: " . mysqli_connect_error());
}
?>
|