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


Current Path : /proc/thread-self/root/var/www/html/gcg/adm/admin/src/
Upload File :
Current File : //proc/thread-self/root/var/www/html/gcg/adm/admin/src/profile.php

<?php

include ("database.php");

$query = "SELECT s.fname, s.ffatname,d.fdescpn,c.fcollname,s.fphotopath 
from student s 
inner join degree d on s.fdegree = d.fdegree 
and s.fexamno = d.fexamno inner join college c on s.fcollcode = c.fcollcode 
where fregno = '{$_SESSION[REGNO]}'";
$result = mysqli_query($conn,$query);
$count = mysqli_num_rows($result);
if($count > 0)
{
	$row = mysqli_fetch_assoc($result);
	$row['photopath'] = 'http://logisys.net.in/'.$_SESSION['FOLDER'].'/'.$row['fphotopath'];
	$row['status'] = 'success';
	echo json_encode($row);
}
else
{
	$data = array("status"=>"failure");
	echo json_encode($data);
}