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.22.74.192
<?php
include ("database.php");
$collcode_query = "select distinct fcollcode from studadm";
$result = mysqli_query($conn,$collcode_query);
$college = mysqli_fetch_array($result,MYSQLI_NUM);
$resp['college'] = $college;
$degreecode_query = "select distinct fdegree from studadm";
$result = mysqli_query($conn,$degreecode_query);
$degree = mysqli_fetch_array($result,MYSQLI_NUM);
$resp['degree'] = $degree;
echo json_encode($resp);
|