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


Current Path : /var/www/html/PrathibhaKaranji_stop/
Upload File :
Current File : /var/www/html/PrathibhaKaranji_stop/signup.php

<?php

include ("database.php");

error_reporting(E_ALL);
ini_set('display_errors', 'on');

$mobile = trim($_POST['mobile']);
$mobileotp = trim($_POST['motp']);
$passwd = trim($_POST['password']);
$nodaloffname = trim($_POST['nodaloffname']);
$nodaloffmob = trim($_POST['nodaloffmob']);

$query = "SELECT * from collstud 
		where fmobileno = '{$mobile}'
		and fmobileotp = '{$mobileotp}'
		and ROUND(time_to_sec((TIMEDIFF(NOW(), fmobotptime))) / 60) <= 10";

$result = mysqli_query($conn,$query);
$row = mysqli_fetch_assoc($result);
$count = mysqli_num_rows($result);

if($count >0)
{
	$query = "update collstud set fmobilevalid = 'T', factive = 'T',fpasswd ='{$passwd}',
				FNODALNAME = '{$nodaloffname}', FNODALMOB = '{$nodaloffmob}'
				where fmobileno = '{$mobile}'";
	$result = mysqli_query($conn,$query);

	if($result == 1)
	{
		$arr["status"] = 'success';
	}
	else
	{
		$arr["status"] = 'error';
	}
}
else
{
	$arr["status"] = 'invalid';
}
echo json_encode($arr);

?>