Changeset 5908
- Timestamp:
- 2006/09/26 17:48:45 (20 years ago)
- File:
-
- 1 edited
-
temp/trunk/html/admin/customer/edit.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
temp/trunk/html/admin/customer/edit.php
r5907 r5908 183 183 function lfRegisDatat($array, $arrRegistColumn) { 184 184 global $objConn; 185 global $objQuery; 185 186 186 187 foreach ($arrRegistColumn as $data) { … … 202 203 } 203 204 204 $arrRegist[" create_date"] = date( "Y/m/d H:i:s", time());205 $arrRegist ["update_date"] = date( "Y/m/d H:i:s", time());205 $arrRegist["update_date"] = "Now()"; 206 $arrRegistMail["update_date"] = "Now()"; 206 207 $arrRegistMail["mail_flag"] = $array["mail_flag"]; 207 208 $arrRegistMail['email'] = $array['email']; 208 209 //-- ÊÔ½¸ÅÐÏ¿¼Â¹Ô 209 210 $objConn->query("BEGIN"); 210 $objConn->autoExecute("dtb_customer", $arrRegist, "customer_id = '" .addslashes($array["customer_id"]). "'"); 211 $objQuery->Insert("dtb_customer", $arrRegist, "customer_id = '" .addslashes($array["customer_id"]). "'"); 212 211 213 //-- ¥á¥ë¥Þ¥¬ÅÐÏ¿ 212 $objConn->autoExecute("dtb_customer_mail", $arrRegistMail, "email = '" .addslashes($array["edit_email"]). "'"); 214 $mailmaga = $objQuery->getAll("SELECT * FROM dtb_customer_mail WHERE email = ?", $array["edit_email"]); 215 216 if(count($mailmaga) > 0 ){ 217 $objQuery->Update("dtb_customer_mail", $arrRegistMail, "email = '" .addslashes($array["edit_email"]). "'"); 218 }else{ 219 $arrRegistMail["create_date"] = "Now()"; 220 //$arrRegist["create_date"] = date( "Y/m/d H:i:s", time()); 221 $objQuery->Insert("dtb_customer_mail", $arrRegistMail); 222 } 213 223 $objConn->query("COMMIT"); 214 224 }
Note: See TracChangeset
for help on using the changeset viewer.
