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


Current Path : /proc/thread-self/root/var/www/html/gcg/adm/admin/src/
Upload File :
Current File : //proc/thread-self/root/var/www/html/gcg/adm/admin/src/saveapps.php

<?php

include ("database.php");

$user = $_POST['user'];
$apps =  $_POST['apps'];
$apps_arr = explode(',',$apps);
$apps = implode("','",$apps_arr);

$update_user_query = "update studadm 
	set fapprusername = '{$user}' 
	where fappno in ('{$apps}')";
$result = mysqli_query($conn,$update_user_query);

if($result)
{
	$response['status'] = "success";
	$response['msg'] = "Updated Successfully";
	echo json_encode($response);
}
else
{
	$response['status'] = "error";
	$response['msg'] = "Error while Updating";
	echo json_encode($response);
}