Mini Shell

Direktori : /var/www/vhosts/ccp.ac.th/backup_full/httpdocs/sp/admin/
Upload File :
Current File : /var/www/vhosts/ccp.ac.th/backup_full/httpdocs/sp/admin/del_la.php

<?php
include '../db/database.php';
$lahistoryID = $_GET['id'];
$sql = "DELETE FROM la_history WHERE lahistoryID='$lahistoryID'";
$result = mysqli_query($link, $sql);
if ($result) {
 header('Content-Type: application/json');
    echo json_encode(array('status' => 'success', 'message' => 'ลบข้อมูลเรียบร้อยแล้ว'));
} else {
    header('Content-Type: application/json');
    $errors = "เกิดข้อผิดพลาดในการลบ กรุณาลองใหม่ ";
    echo json_encode(array('status' => 'danger', 'message' => $errors));
}

Zerion Mini Shell 1.0