16 lines
746 B
PHP
16 lines
746 B
PHP
<?php header('Content-type: application/json');
|
|
if ( !defined('PATHTOINCLUDES') ) define('PATHTOINCLUDES', $_SERVER["DOCUMENT_ROOT"] . '/include/analytics/');
|
|
include(PATHTOINCLUDES."base.php");
|
|
date_default_timezone_set('UTC');
|
|
$em="";
|
|
$thedesc=$_POST['thedesc'];
|
|
$thetype=$_POST['thetype'];
|
|
$thelink=$_POST['thelink'];
|
|
$theaid=$_POST['theaid'];
|
|
$thedesc=addslashes($thedesc);
|
|
$thetype=addslashes($thetype);
|
|
$sql = "UPDATE `ask_dr_bate` SET `ask_dr_bate`.`thecontent` = '".$thedesc."', `ask_dr_bate`.`thetype` = '".$thetype."', `ask_dr_bate`.`thelink` = '".$thelink."' WHERE `ask_dr_bate`.`aid` = ".$theaid;
|
|
$query=$database->database_query($sql) or $em .= $database->database_error();
|
|
$arr = array ('error' => $em);
|
|
echo json_encode($arr);
|
|
?>
|