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.
21 lines
406 B
21 lines
406 B
<?php |
|
include './functions.php'; |
|
|
|
$tableId = $_GET['tableId']; |
|
$name = $_GET['name']; |
|
$threshold = $_GET['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, |
|
"updated_at" => date("Y-m-d H:i:s", time()) |
|
), array( |
|
"id" => $tableId |
|
));
|
|
|