Exemplo n.º 1
0
<?php

require_once "../lib/class_quantri.php";
$qt = new quantri();
$bang = $_GET['bang'];
$ma = $_GET['ma'];
$id = $_GET['id'];
$value = $_GET['value'];
settype($id, "int");
$bang = $qt->XoaDinhDang($bang);
$ma = $qt->XoaDinhDang($ma);
$value = $qt->XoaDinhDang($value);
$get = $qt->ValueHienTai($bang, $ma, $id, $value);
if ($get == 0) {
    $get = 1;
} else {
    $get = 0;
}
$qt->ValueThayDoi($bang, $ma, $id, $value, $get);
echo $get;