12 lines
469 B
PHP
12 lines
469 B
PHP
|
|
<?php header('Content-type: application/json');
|
||
|
|
if ( !defined('PATHTOINCLUDES') ) define('PATHTOINCLUDES', $_SERVER["DOCUMENT_ROOT"] . '/wall/include/');
|
||
|
|
include(PATHTOINCLUDES."base.php");
|
||
|
|
$thevid=$_GET["vid"];
|
||
|
|
$themmsid=$_GET["mmsid"];
|
||
|
|
$em="";
|
||
|
|
|
||
|
|
$sql="DELETE FROM `mms_comments` WHERE `mms_comments`.`mmsid` = ".$themmsid." ";
|
||
|
|
$result=$database->database_query($sql) or $em=$em.$database->database_error();
|
||
|
|
$arr = array ('error' => $em);
|
||
|
|
echo json_encode($arr);
|
||
|
|
?>
|