20 lines
689 B
PHP
20 lines
689 B
PHP
|
|
<?php header('Content-type: application/json');
|
||
|
|
$em="";
|
||
|
|
if ( !defined('PATHTOINCLUDES') ) define('PATHTOINCLUDES', $_SERVER["DOCUMENT_ROOT"] . '/include/analytics/');
|
||
|
|
include(PATHTOINCLUDES."base.php");
|
||
|
|
|
||
|
|
|
||
|
|
echo $_POST["fieldname"];
|
||
|
|
var_dump($_POST);
|
||
|
|
$fieldname=$_POST["fieldname"];
|
||
|
|
$fieldvalue=$_POST["fieldvalue"];
|
||
|
|
$dtype=$_POST["dtype"];
|
||
|
|
$table_name=$_POST["thetable"];
|
||
|
|
$therowid=$_POST["therowid"];
|
||
|
|
$sql="UPDATE ".$table_name." SET ".$fieldname."=".GetSQLValueString($fieldvalue, $dtype)."
|
||
|
|
WHERE adid = ".$therowid;
|
||
|
|
$query=$database->database_query($sql) or $em=$em.$database->database_error();
|
||
|
|
$arr = array ('error'=>$em);
|
||
|
|
echo json_encode($arr);
|
||
|
|
//Philip Poremba 05/02/2012
|
||
|
|
?>
|