<?php header("Access-Control-Allow-Origin: *"); ?> <?php // Initialize the session session_start(); // Check if the user is logged in, if not then redirect him to login page if(!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true){ // header("location: login.php"); // exit; } ?> <?php $row = $_POST["postdata"]; // $ecodedata= base64_decode($row); $b= json_decode ($row); $lid= $b->lid; $lcode= $b->lcode; $fbox= $b->fbox; $abox= $b->abox; echo "$lid $lcode $fbox $abox"; //echo "H:l$hbx1 $hbxv1-$hbx2 $hbxv2-$hbx3 $hbxv3 $row"; //echo "H:l$attchmentid $attchment"; // echo "sid ".$sid." uid -$uid -pid $pid-ID --$nid"; ?> <?php require_once "configs.php"; if ($lid) { updtt($db,$lid,$lcode,$fbox,$abox); } function updtt($db,$lid,$lcode,$fbox,$abox){ $sql = "update lisa set lcode='".$lcode."' ,fbox = '".$fbox. "'" ." ,attachmentv= " .$abox." where id=".$lid; echo "started ".$sql; $res = $db->query($sql); if ($res) { echo "$id successfully to $lcode $fbox $abox"; // include "s_asqpl.php"; } else { echo "Error: " . $sql . "<br>" . $link->error; } ?>
Edit file:lisaupdate.php1365