-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshow_calculator_process.php
32 lines (23 loc) · 1.02 KB
/
show_calculator_process.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
require_once './include/common.php';
$sid = $_POST['sid'];
$sqbuy = $_POST['qbuy'];
$sqvolume = $_POST['qvolume'];
$sqtotal = $_POST['qtotal'];
$stock_signal = $_POST['stock_signal'];
$order_type = $_POST['order_type'];
$stop_loss = $_POST['stop_loss'];
$target = $_POST['target'];
$field = array('qbuy' => $sqbuy,'qvolume' => $sqvolume, 'qtotal' => $sqtotal,
'stock_signal' => $stock_signal, 'order_type' => $order_type, 'stop_loss' => $stop_loss,
'target' => $target);
$table = "stocklistbackup";
$condition = "id = $sid";
$arugment = array( "field" => $field , "table" => $table, "condition" => $condition);
update($arugment);
$tField = array("sum(qtotal) as totals");
$condition = "sEntry = 'old' and isWatch = 'yes' and priority = 1";
$tarugment = array( "field" => $tField , "table" => $table, "condition" => $condition);
$tdata = select($tarugment,"one");
echo $tdata["totals"];
?>