Files
Testing/include/analytics/hc_del_comment_act.php

15 lines
550 B
PHP
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
<?php header('Content-type: application/json');
if ( !defined('PATHTOINCLUDES') ) define('PATHTOINCLUDES', $_SERVER["DOCUMENT_ROOT"] . '/include/analytics/');
include(PATHTOINCLUDES."base.php");
$args = array(
'thecid' => FILTER_VALIDATE_INT
);
$sanitizeinputs = filter_input_array(INPUT_POST, $args);
$hc_cid=$_POST["thecid"];
$em="";
$sql="DELETE FROM `hc_comment` WHERE `hc_comment`.`hc_cid` = ".$hc_cid;
$query=$database->database_query($sql) or $em=$em.$database->database_error();
$arr = array ('error'=>$em);
echo json_encode($arr);
?>