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.144.123.61
<?php
Class dbObj
{
/* Database connection start */
/*var $servername = "localhost";
var $username = "root";
var $password = "";
var $dbname = "test";
var $conn; */
$servername = "logisys.cluster-cv9maxyrxjgg.ap-south-1.rds.amazonaws.com";
$username = "admin";
$password = "Logisys2104";
$dbname = "resultsg_kusd";
$conn;
function getConnstring()
{
$con = mysqli_connect($this->servername, $this->username, $this->password, $this->dbname) or die("Connection failed: " . mysqli_connect_error());
/* check connection */
if(mysqli_connect_errno())
{
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
else
{
$this->conn = $con;
}
return $this->conn;
}
}
?>
|