ok

Mini Shell

Direktori : /home2/selectio/public_html/tnpsctestbatch.com/api/
Upload File :
Current File : /home2/selectio/public_html/tnpsctestbatch.com/api/delete.php

<?php 
    
    include "../config/config.php"; 
    if($_POST['type']=="hard_delete"){
    $uid  =  $_POST['user_id'];  
    $exam_type  =  $_POST['exam_type']; 
    error_log("DELETE FROM ".$_POST['table_name']." WHERE user_id=$uid AND type = $exam_type"); 
    $statement = $pdo->prepare("DELETE FROM ".$_POST['table_name']." WHERE user_id=$uid AND type = $exam_type");
    $result=$statement->execute();
    if($result==1){
    	    $message='Success..';
    	    $error='1';
    	}
	else{
	    $message='Failed..';
	    $error='0';
	}
		$datas[] = array('message' => $message, 'error' => $error);                   
        echo $message;
}

?>

Zerion Mini Shell 1.0