Changeset 11411 for temp/branches/mobile/data/class/SC_Customer.php
- Timestamp:
- 2007/02/08 13:54:58 (19 years ago)
- File:
-
- 1 edited
-
temp/branches/mobile/data/class/SC_Customer.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
temp/branches/mobile/data/class/SC_Customer.php
r11405 r11411 50 50 } 51 51 52 function getCustomerDataFromEmailPass( $pass, $email ) { 52 function getCustomerDataFromEmailPass( $pass, $email, $mobile = false ) { 53 $sql_mobile = $mobile ? ' OR email_mobile ILIKE ?' : ''; 54 $arrValues = array($email); 55 if ($mobile) { 56 $arrValues[] = $email; 57 } 53 58 // ËÜÅÐÏ¿¤µ¤ì¤¿²ñ°÷¤Î¤ß 54 $sql = "SELECT * FROM dtb_customer WHERE email ILIKE ?AND del_flg = 0 AND status = 2";55 $result = $this->conn->getAll($sql, array($email));59 $sql = "SELECT * FROM dtb_customer WHERE (email ILIKE ?" . $sql_mobile . ") AND del_flg = 0 AND status = 2"; 60 $result = $this->conn->getAll($sql, $arrValues); 56 61 $data = $result[0]; 57 62
Note: See TracChangeset
for help on using the changeset viewer.
