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 : 18.118.26.128


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

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