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


Current Path : /proc/thread-self/root/var/www/html/pgadm/ru_stop/
Upload File :
Current File : //proc/thread-self/root/var/www/html/pgadm/ru_stop/genRankPrio.php

<?php
include ("../database.php");

$query = "select fappno, fname, fqpercentage from entstudadm order by fqpercentage desc, fdob desc";

$result = mysqli_query($conn,$query);
$rank = 1;
while($row = mysqli_fetch_assoc($result)) {
	echo $row['fappno'].'<br/>';
	
	$update = "update entstudadm set frank = '{$rank}' 
		where  fappno = '{$row['fappno']}'";
	$result3 = mysqli_query($conn,$update);
	
	$query = "select fappno, fcollcode, fdegree from entoptions where fappno = '{$row['fappno']}'";
	$result1 = mysqli_query($conn,$query);
	$priority = 1;
	while($row1 = mysqli_fetch_assoc($result1)) {

		$update = "update entoptions set fpriority = '{$priority}', frank = '{$rank}' 
		where  fappno = '{$row1['fappno']}' and  fcollcode = '{$row1['fcollcode']}' and  fdegree = '{$row1['fdegree']}'";
		$result2 = mysqli_query($conn,$update);
		$priority++;
	}
	$rank++;
}

mysqli_close($conn);


?>