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.
38 lines
1.1 KiB
38 lines
1.1 KiB
<?php
|
|
require_once("../connt8.php");
|
|
|
|
try {
|
|
$contractno = 'M0225202300';
|
|
$user_id = 'M0225';
|
|
// $sql = "INSERT INTO comBusinessPartner (BizPartnerId,TaxNo,CreatorId) VALUES('M0225202301','0923373895','$userid')";
|
|
// $stmt = $connT8->prepare($sql);
|
|
// $stmt->execute();
|
|
|
|
$sql = "UPDATE comBusinessPartner SET WorkTelNo = '' WHERE BizPartnerId= 'M0225202301'";
|
|
$stmt = $connT8->prepare($sql);
|
|
$stmt->execute();
|
|
|
|
echo 'Success';
|
|
} catch (PDOException $e) {
|
|
echo '<script>alert("更新失敗")</script>';
|
|
}
|
|
// $sql = "SELECT * FROM comCustomer WHERE BizPartnerId = :BizPartnerId";
|
|
// $stmt = $conn->prepare($sql);
|
|
// $stmt->bindParam(':BizPartnerId', $contractno);
|
|
// $stmt->execute();
|
|
// $result = $stmt->fetch(PDO::FETCH_NUM);
|
|
// $arr = array();
|
|
// if (!empty($result)) {
|
|
// foreach ($result as $key => $value) {
|
|
// $arr[$key] = $value;
|
|
// }
|
|
// }
|
|
// $count = empty($result) == '' ? 0 : COUNT($result);
|
|
// echo '<pre>';
|
|
// print_r($result);
|
|
// echo '</pre>';
|
|
// echo '<br/>';
|
|
|
|
// $createTime = Date('Y-m-sH-i-s');
|
|
|
|
// echo str_replace('-', '', $createTime);
|
|
|