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.12.153.240
<?php
include ("database.php");
$regno = trim($_POST['regno']);
$univcode = trim($_POST['univ']);
if($univcode == '001' && strlen($regno) == 7 )
$regno = '9'.$regno;
//and fmobileotp = '3313'
$query = "SELECT fregno, fname, ifnull(ffather,'') as ffather, ifnull(fmother,'') as fmother
from pushstud where fregno = '{$regno}' and funivcode = '{$univcode}'";
// var_dump($query);
$result = mysqli_query($conn,$query);
$count = mysqli_num_rows($result);
if($count > 0)
{
$row['result'] = mysqli_fetch_assoc($result);
// var_dump($row['result']);
$row['status'] = 'success';
echo json_encode($row);
}
else
{
$row["status"] = 'invalid';
echo json_encode($row);
}
?>
|