/var/www/enzatesting.onesolution.hk/ajax_ord_podtl_markfinished.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php 
$formid 
$_REQUEST['formid'];
require_once 
"inc/configure.php";

$refid         = (int) filter_var($_REQUEST['podtl_refid'], FILTER_SANITIZE_STRING);
$lastupby    filter_var($_SESSION['user'], FILTER_SANITIZE_STRING);
if(
$refid &&  $_POST['action']=="ajax_ord_podtl_markfinished" && $row=getDB("ord_podtl"$refid)){

    
$sql "UPDATE ord_podtl SET 
        sostatus=:sostatus
        WHERE refid=:refid"
;
    
$sth $dbh->prepare($sql);
    
$q$sth->execute( array(':refid'=> $refid
                      
':sostatus'=> 'FINISHED') );
/*    echo $sth->getSQL(   ).HTML_EOL;    exit;*/
    
pdo_showerror($sth$q);
    
    print 
FINISHED;
    exit;
}
print 
INVALID.WS.REQUEST;