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.140.188.174
<?php
include ("database.php");
$regno = trim($_POST['regno']);
$univcode = trim($_POST['univ']);
//and fmobileotp = '3313'
$query = "SELECT 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);
$row['status'] = 'success';
echo json_encode($row);
}
else
{
$row["status"] = 'invalid';
echo json_encode($row);
}
?>
|