Mini Shell
<?php
include("../config.php");
$conn = dbconnect();
error_reporting(0);
date_default_timezone_set('Asia/Kolkata');
$today = date( 'Y-m-d H:i:s');
$user_id = $_POST['user_id'];
$user_name = $_POST['user_name'];
$username = $_POST['username'];
$user_gender = $_POST['user_gender'];
$user_position = $_POST['user_position'];
$user_phone = $_POST['user_phone'];
$user_password = $_POST['user_password'];
$status = $_POST['status'];
$sql = "UPDATE tb1_admin SET name='$user_name',phone='$user_phone',gender='$user_gender',position='$user_position',user_name='$username',password='$user_password',status='$status' WHERE admin_id='$user_id'";
$content_res = mysqli_query($conn, $sql);
$code = 'done';
echo $data = json_encode($code);
?>
Zerion Mini Shell 1.0