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.
17 lines
490 B
17 lines
490 B
<?php
|
|
include_once("../conn.php");
|
|
$sql = "SELECT * FROM salIncomeApplyDetail WHERE BillNo ='B24010032'";
|
|
$stmt = $connT8->prepare($sql);
|
|
$stmt->execute();
|
|
$result = $stmt->fetch(PDO::FETCH_ASSOC);
|
|
|
|
|
|
$aaa = intval($result['OAmountWithTax']) - 24;
|
|
$sql = "UPDATE salIncomeApplyDetail SET OAmountWithTax = $aaa WHERE BillNo = 'B24010032' AND RowCode = '1'";
|
|
$stmt = $connT8->prepare($sql);
|
|
$stmt->execute();
|
|
|
|
|
|
echo "<pre>";
|
|
print_r($result['OAmountWithTax']);
|
|
echo "</pre>";
|
|
|