<?php header("Access-Control-Allow-Origin: *"); $ecodedata = $_POST["postdata"]; // echo "server say::".($ecodedata); //base64_decode $b= json_decode ($ecodedata); $x= $b->x; $y= $b->y; $z= $b->z; $w= $b->w; $id=$b->id; if ($id) { require_once "configs.php"; $sql = "UPDATE fixa SET title='".$x."'". ",title_th='".$y. "',scode='".$w."',tas=".$z." WHERE id=".$id; $ret = $db->exec($sql); if(!$ret) { echo $db->lastErrorMsg(); } else { //echo $db->changes(), " Record updated successfully\n"; //echo "$x updated"; echo "OK"; $db->close(); } } ?>
Edit file:z_updfixa.php764