English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Without further ado, please see the code:
public function CheckMobileUser($data) { $sql = 'select phone,username from wlzbpre_user where phone="' . $data['phone'] . '" or username="' . $data['phone'] . '" and status="'1" limit 1'; $phone = M();->query($sql); $phone = $phone[0]['phone']; $username = $phone[0]['username']; if (empty($phone)) { $remark = array( 'RespCode' => '0',81 'RespDesc' => 'Phone number',/Username does not exist 'AcctDetails' => array('token' => ''), ); } else { $remark = array( 'RespCode' => '000', 'RespDesc' => 'Phone number already exists', 'AcctDetails' => array('phone' => $phone, 'username' => $username), ); } return $remark; }
That's all for this article. I hope the content of this article can bring some help to everyone's study or work, and I also hope to get more support for the Yell Tutorial!
Statement: The content of this article is from the Internet, and the copyright belongs to the original author. The content is contributed and uploaded by Internet users spontaneously. This website does not own the copyright, does not edit the content manually, and does not assume any relevant legal liability. If you find any copyright-infringing content, please send an email to: notice#w3Please report by email to codebox.com (replace # with @ when sending email) and provide relevant evidence. Once verified, this site will immediately delete the infringing content.