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


Current Path : /var/www/html/pgadm/
Upload File :
Current File : /var/www/html/pgadm/vkurankupd.php

<?php
	
	ini_set('max_execution_time', 600);

	$servername = "logisys.cluster-cv9maxyrxjgg.ap-south-1.rds.amazonaws.com";
	$username   = "admin";
	$password  = "T0g3th3r@all";
	$dbname = "logisys3_vku";

	$conn = new mysqli($servername, $username, $password, $dbname);


	$fappno = $_GET['fappno'];
	$fdegree = $_GET['fdegree'];
	$frank = $_GET['frank'];
	
	if($fappno == '' || $fdegree == '' || $frank == '') 
	{
		echo "Kinldy Pass All values...";
		die();
	}



	$query = "select s.fappno,ifnull(d.frank,'NE') as frank from entstudadm s inner join entoptdeg d on s.fappno = d.fappno 
	where ifnull(s.fpaystatus,'') = 'success'
	and s.fappno = '{$fappno}'
	and d.fdegree = '{$fdegree}'";
	//var_dump($query); die();
	$resultm = $conn->query($query);
	
	if (mysqli_num_rows($resultm) > 0) 
	{

		while($row = mysqli_fetch_assoc($resultm)) 
		{

			$oldfrank  = $row['frank'];

			if($oldfrank != 'NE')
			{
				echo "Rank Already Generated. Rank is: ". $oldfrank;
				die();
			}

			

			$update="update entoptdeg set frank='{$frank}'
			where fappno = '{$fappno}'
			and fdegree = '{$fdegree}'";
			$result = $conn->query($update);

			//var_dump($insert_studfee);
			echo $regno." - Updated successfully";
			echo "<br/>";
			
		}
	}else
	{
		echo "Invalid Application No. or Degree";
	}

?>