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


Current Path : /var/www/html/mum/
Upload File :
Current File : /var/www/html/mum/rv_update.php

<?php
	ini_set('max_execution_time', 600);
	$servername = "97.74.228.93";
	$username = "logisys3_logu";
	$password = "Logisys@2106";
	$dbname = "logisys3_dud";
	/*$servername = "localhost";
	$username = "root";
	$password = "";
	$dbname = "resultsg_kus";*/
	$conn = new mysqli($servername, $username, $password, $dbname);


	$query = "select distinct ac.appno, ac.fregno, ac.FPAYMENTSTATUS, ac.FPAYGATEWAY,kp.fname as fname, ac.FDATE,
	ac.fcollcode, ac.fdegree  from res_stud ac
	inner join pg_txn kp on
	ac.appno = kp.fappno
	where ifnull(ac.FPAYMENTSTATUS,'') <> 'success'
	and FPAYMENTYPE = 'Other Banks'";
	
	$resultm = $conn->query($query);
	
	if (mysqli_num_rows($resultm) > 0) 
	{
		while($row = mysqli_fetch_assoc($resultm)) 
		{

			$productinfo  = $row['appno'];
			$regno = $row['fregno'];
			$paytm  = $row['FPAYGATEWAY'];
			$degree  = $row['fdegree'];
			$collcode  = $row['fcollcode'];
			$fname  = $row['fname'];
			//$firstname = "paytm";

			 $update="update res_stud set FPAYMENTREMARKS='{$txnid}',FPAYMENTSTATUS='success',
                    FPAYMENTCONFIRM='success', fackdate = current_date(), funivrecdate = current_date(), 
                    fackuser = '{$fname}', FCHALLANNO = '{$productinfo}'
                    where APPNO='{$productinfo}'";
			$result = $conn->query($update);

		
			//var_dump($insert_studfee);
			echo $regno;
			echo "<br/>";

		}
	}

?>