本文整理汇总了PHP中db_test::getFiledData方法的典型用法代码示例。如果您正苦于以下问题:PHP db_test::getFiledData方法的具体用法?PHP db_test::getFiledData怎么用?PHP db_test::getFiledData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类db_test
的用法示例。
在下文中一共展示了db_test::getFiledData方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: then
<?php
require "../include/common.inc.php";
$db = new db_test();
$boolean = 0;
$query = "select\n case\n when fd_agpm_payfeedirct ='s' then ' 收款方'\n when fd_agpm_payfeedirct ='f' then '付款方'\n END payfeedirct,\n\n case\n when fd_agpm_paytype ='coupon' then '购买抵用券'\n when fd_agpm_paytype ='creditcard' then '信用卡还款'" . "when fd_agpm_paytype ='recharge' then '充值'" . "when fd_agpm_paytype ='pay' then '还贷款'" . "when fd_agpm_paytype ='order' then '订单付款'" . "when fd_agpm_paytype ='tfmg' then '转账汇款'\n else '其他业务' END paytype,\n\n case\n when fd_agpm_payfeedirct ='f' then fd_agpm_paymoney\n when fd_agpm_payfeedirct ='s' then (fd_agpm_paymoney-fd_agpm_payfee)\n else fd_agpm_paymoney END money,\n\n fd_agpm_bkordernumber as bkordernumber,\n fd_pymyltdetail_id as vid,\n fd_agpm_bkntno as bkntno,\n fd_paycard_key as paycardkey,\n fd_author_truename as author,\n fd_agpm_paytype as paytypee,\n fd_agpm_paydate as paydate,\n fd_agpm_shoucardno as shoucardno,\n fd_agpm_shoucardbank as shoucardbank,\n fd_agpm_shoucardman as shoucardman,\n fd_agpm_shoucardmobile as shoucardmobile,\n fd_agpm_current as current,\n fd_agpm_paymoney as paymoney ,\n fd_agpm_payfee as payfee,\n fd_agpm_arrivemode as arrivemode,\n fd_agpm_arrivedate as arrivedate,\n fd_paycardaccount_accountname as accountname,\n fd_sdcr_agentfee as sdcragentfee,\n fd_agpm_isagentpay as isagentpay,\n fd_paycardaccount_accountnum as accountnum\n from tb_paymoneylistdetail \n left join tb_agentpaymoneylist on fd_pymyltdetail_agpmid = fd_agpm_id\n left join tb_paycard on fd_agpm_paycardid = fd_paycard_id\n left join tb_author on fd_author_id = fd_agpm_authorid\n left join tb_paycardaccount on fd_paycard_paycardaccount = fd_paycardaccount_id\n left join tb_sendcenter on fd_sdcr_id = fd_agpm_sdcrid\n where fd_pymyltdetail_paymoneylistid = '{$listid}'\n order by fd_agpm_bkntno";
$db->query($query);
$arr_result = $db->getFiledData('');
foreach ($arr_result as $key => $value) {
switch ($value['paytype']) {
case 'coupon':
$table = 'couponsale';
$where = 'couponsale';
break;
case 'creditcard':
$table = 'creditcardglist';
$where = 'ccglist';
break;
case 'recharge':
$table = 'rechargeglist';
$where = 'rechargelist';
break;
case 'repay':
$table = 'repaymoneyglist';
$where = 'repmglist';
break;
case 'tfmg':
$table = 'transfermoneyglist';
$where = 'tfmglist';
break;
case 'suptfmg':