<?php
include 'tabla.php';
include '../rdb/conn.php';
include '../comunes_php/cors.php';
include "../comunes_php/Log.class.php"; 
$log = new Log("app_trace", "../");


$id = intval($_REQUEST['id']);


$sql = "delete from $tabla where id=$id";
@mysqli_query( $conn,$sql);
$log->insert($sql, false, false, false);

echo json_encode(array('success'=>true));
?>


