13 lines
539 B
PHP
13 lines
539 B
PHP
<?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);
|
|
?>
|