本文整理匯總了PHP中DB_test::delete方法的典型用法代碼示例。如果您正苦於以下問題:PHP DB_test::delete方法的具體用法?PHP DB_test::delete怎麽用?PHP DB_test::delete使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DB_test
的用法示例。
在下文中一共展示了DB_test::delete方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: shaddressDelete
public function shaddressDelete()
{
$db = new DB_test();
$arr_header = $this->arr_header;
$arr_body = $this->arr_body;
$arr_channelinfo = $this->arr_channelinfo;
$bkntno = trim($arr_body['bkntno']);
//交易流水號
//$paycardid = trim(GetPayCalcuInfo::readpaycardid($arr_body['paycardid'])); //刷卡器設備號
$authorid = trim($arr_channelinfo['authorid']);
//authorid
$shaddressid = $arr_body['shaddressid'];
$nowdate = date("Y-m-d H:i:s");
$wherequery = "fd_shaddress_id = '{$shaddressid}'";
$db->delete("tb_authorshaddress", $wherequery);
$arr_message = array("result" => "success", "message" => "刪除收貨地址成功!");
$retcode = "0";
//反饋狀態 0 成功 200 自定義錯誤
$arr_msg['msgbody']['result'] = $arr_message['result'];
$arr_msg['msgbody']['message'] = $arr_message['message'];
$arr_msg['msgbody']['bkntno'] = $bkntno;
$returnvalue = array("msgbody" => $arr_msg['msgbody']);
$returnval = TfbxmlResponse::ResponsetoApp($retcode, $returnvalue);
return $returnval;
}