mirror of https://github.com/IoTcat/cp-acc.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
442 B
22 lines
442 B
<?php |
|
include './functions.php'; |
|
|
|
$tableId = $_REQUEST['tableId']; |
|
$name = $_REQUEST['name']; |
|
$threshold = $_REQUEST['threshold']; |
|
|
|
|
|
if(!isset($tableId) || !isset($name) || !isset($threshold)) die(); |
|
|
|
|
|
$cnn = db__connect(); |
|
db__pushData($cnn, "table", array( |
|
"id" => $tableId, |
|
"state" => '1', |
|
"name" => $name, |
|
"threshold" => $threshold, |
|
"created_by" => $hash, |
|
"created_at" => date("Y-m-d H:i:s", time()) |
|
), array( |
|
"id" => $tableId |
|
));
|
|
|