Changeset 20066


Ignore:
Timestamp:
2011/02/01 15:38:44 (11 years ago)
Author:
ghana
Message:

refs #898
SC_Query::exec() は非推奨なので SC_Query::update() で書きなおし

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/admin/customer/LC_Page_Admin_Customer.php

    r20044 r20066  
    267267 
    268268            if ($result_customer[0]["status"] == 2) {           //本会員削除 
    269                 $objQuery->exec("UPDATE dtb_customer SET del_flg=1, update_date=now() WHERE customer_id=?", array($_POST["edit_customer_id"])); 
     269                $objQuery->update("dtb_customer", array('del_flg' => 1, "update_date" => "now"), "customer_id = ?", array($_POST["edit_customer_id"])); 
    270270            } elseif ($result_customer[0]["status"] == 1) {     //仮会員削除 
    271271                $sql = "DELETE FROM dtb_customer WHERE customer_id = ?"; 
     
    413413 
    414414                    if ($result_customer[0]["status"] == 2) {           //本会員削除 
    415                         $objQuery->exec("UPDATE dtb_customer SET del_flg=1, update_date=now() WHERE customer_id=?", array($_POST["del_customer_id"])); 
     415                        $objQuery->update("dtb_customer", array('del_flg' => 1, "update_date" => "now"), "customer_id = ?",  array($_POST["edit_customer_id"])); 
    416416                    } elseif ($result_customer[0]["status"] == 1) {     //仮会員削除 
    417417                        $sql = "DELETE FROM dtb_customer WHERE customer_id = ?"; 
Note: See TracChangeset for help on using the changeset viewer.