本文整理汇总了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;
}