Changeset 7953 for temp


Ignore:
Timestamp:
2006/11/09 10:09:59 (20 years ago)
Author:
kakinaka
Message:

blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/downloads/module/mdl_epsilon/mdl_epsilon.php

    r7952 r7953  
    187187     
    188188    //¥Ç¡¼¥¿¤ò¼èÆÀ 
    189     $arrRet = lfGetPaymentDB(); 
     189    $arrRet = lfGetPaymentDB("AND memo03 = ?", array(1)); 
    190190     
    191191    // Ãͤò¥»¥Ã¥È 
     
    214214 
    215215// DB¤«¤é¥Ç¡¼¥¿¤ò¼èÆÀ¤¹¤ë 
    216 function lfGetPaymentDB(){ 
     216function lfGetPaymentDB($where, $arrWhereVal){ 
    217217    global $objQuery; 
     218     
     219    $arrVal = array(MDL_EPSILON_ID); 
     220    $arrVal = array_merge($arrVal, $arrWhereVal); 
    218221     
    219222    $arrRet = array(); 
     
    225228                memo04 as payment_code,  
    226229                memo05 as convenience 
    227             FROM dtb_payment WHERE module_id = ?"; 
    228     $arrRet = $objQuery->getall($sql, array(MDL_EPSILON_ID)); 
     230            FROM dtb_payment WHERE module_id = ? " . $where; 
     231    $arrRet = $objQuery->getall($sql, $arrVal); 
    229232     
    230233    return $arrRet; 
Note: See TracChangeset for help on using the changeset viewer.