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


Current Path : /var/www/html/gcg/adm/admin/src/
Upload File :
Current File : /var/www/html/gcg/adm/admin/src/getautofill.php

<?php

include ("database.php");

$collcode_query = "select distinct concat(cl.fcollcode,'-',fcollname) as college 
from studadm sa inner join college cl on sa.fcollcode = cl.fcollcode";

$result = mysqli_query($conn,$collcode_query);
$i=0;
while($coll = mysqli_fetch_array($result,MYSQLI_NUM)) 
{
	$college[$i] = $coll[0];
	$i++;
}
$resp['college'] = $college;

$degreecode_query = "select distinct concat(de.fdegree,'-',de.fdescpn) as degree 
from studadm sa
inner join degree de on sa.fdegree = de.fdegree
and sa.fexamno = de.fexamno";

$result = mysqli_query($conn,$degreecode_query);
$i=0;
while($deg = mysqli_fetch_array($result,MYSQLI_NUM)) 
{
	$degree[$i] = $deg[0];
	$i++;
}

$resp['degree'] = $degree;

echo json_encode($resp);