Files
Testing/include/analytics/mms/mms_update_comment.php

13 lines
539 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"] . '/wall/include/');
include(PATHTOINCLUDES."base.php");
$thevid=$_POST["vid"];
$themmsid=$_POST["mmsid"];
$thepost=$_POST["thepost"];
$em="";
$sql="UPDATE `mms_comments` SET `mms_comments`.`thecomment` = '".$thepost."' WHERE `mms_comments`.`mmsid` = ".$themmsid;
$result=$database->database_query($sql) or $em=$em.$database->database_error();
$arr = array ('error' => $em);
echo json_encode($arr);
?>