當前位置: 首頁>>代碼示例>>PHP>>正文


PHP db_test::getFiledData方法代碼示例

本文整理匯總了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':
開發者ID:Xiaoyuyexi,項目名稱:client-server,代碼行數:31,代碼來源:ajaxallcancelpay.php


注:本文中的db_test::getFiledData方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。