Changeset 11655


Ignore:
Timestamp:
2007/03/09 11:23:07 (15 years ago)
Author:
uehara
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/mobile/mypage/change.php

    r11653 r11655  
    5656                             array(  "column" => "reminder_answer", "convert" => "aKV"), 
    5757                             array(  "column" => "password", "convert" => "a" ), 
    58                              array(  "column" => "mailmaga_flg", "convert" => "n" )                              
     58                             array(  "column" => "mailmaga_flg", "convert" => "n" )           
    5959                         ); 
    6060 
     
    237237    $objQuery = new SC_Query(); 
    238238    $objQuery->insert("dtb_customer", $arrRegist); 
    239  
    240     //--¡¡Èó²ñ°÷¤Ç¥á¥ë¥Þ¥¬ÅÐÏ¿¤·¤Æ¤¤¤ë¤«¤ÎȽÄê 
    241     $sql = "SELECT count(*) FROM dtb_customer_mail WHERE email = ?"; 
    242     $mailResult = $objConn->getOne($sql, array($arrRegist["email"])); 
    243  
    244     //--¡¡¥á¥ë¥Þ¥¬²¾ÅÐÏ¿¼Â¹Ô 
    245     if ($array["mailmaga_flg"] == 1) { 
    246         $arrRegistMail["mailmaga_flg"] = 4;  
    247     } elseif ($array["mailmaga_flg"] == 2) { 
    248         $arrRegistMail["mailmaga_flg"] = 5;  
    249     } else { 
    250         $arrRegistMail["mailmaga_flg"] = 6;  
    251     } 
    252  
    253      
    254     // Èó²ñ°÷¤Ç¥á¥ë¥Þ¥¬ÅÐÏ¿¤·¤Æ¤¤¤ë¾ì¹ç 
    255     if ($mailResult == 1) {      
    256         $objQuery->update("dtb_customer_mail", $arrRegistMail, "email = '" .addslashes($arrRegistMail["email"]). "'");           
    257     } else {                //¡¡¿·µ¬ÅÐÏ¿¤Î¾ì¹ç 
    258         $arrRegistMail["create_date"] = "now()"; 
    259         $objQuery->insert("dtb_customer_mail", $arrRegistMail);      
    260     } 
    261239    $objConn->query("COMMIT"); 
    262240 
Note: See TracChangeset for help on using the changeset viewer.