getAll('SELECT customer_id, name01, name02, point FROM dtb_customer WHERE del_flg = 0'); // ポイント合計 $arrPoints = $objQuery->getAll('SELECT SUM(point) as totall_point FROM dtb_customer WHERE del_flg = 0'); $total_point = 0; if (!is_null($arrPoints[0]["totall_point"])) { $total_point = $arrPoints[0]["totall_point"]; } // 顧客IDごとの配列 $arrCustomers = array(); foreach ($arrCustomerTemp as $customer) { $arrCustomers[$customer['customer_id']] = $customer; } // 寄付一覧 $arrDnTemp = file(DONATION_DATA); $arrDonations = array(); $correct_point = 0; foreach ($arrDnTemp as $dn) { $arrDn = explode(",", $dn); $arrDonations[] = $arrDn; $correct_point += $arrDn[2]; } ?>
集まったポイント | pt |
---|---|
義援金総額 | 円 |
顧客の保持ポイント合計 | pt |
集まった義援金総額を, 義援金として日本赤十字社などにお贈り下さい
寄付日時 | 顧客ID | お名前 | 寄付ポイント |
---|---|---|---|
pt |