ok

Mini Shell

Direktori : /home2/selectio/public_html/frames-hub/api/
Upload File :
Current File : /home2/selectio/public_html/frames-hub/api/delete.php

<?php  include "config/config.php";

if($_POST['type']=="customer_delete"){
$statement = $pdo->prepare("UPDATE ".$_POST['table']." SET status=? WHERE id=?");
$result=$statement->execute(array(0,$_POST['delete_id']));
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