我有一个表来存储用户详细信息,它包括电子邮件、手机和密码等字段。这里我登录的用户名可以是电子邮件或手机号码,我需要将其与密码进行比较。我该如何编写查询?我是这样写的,但它不起作用$this->db->select('*'); $this->db->from('user'); $this->db->where('email',$data['email']); $this->db->or_where('mobile',$data['email']); $this->db->where('password',$data['password']); $this->db->get()->row();我需要代码来将用户名作为电子邮件或移动设备与其密码进行比较。
1 回答
- 1 回答
- 0 关注
- 98 浏览
添加回答
举报
0/150
提交
取消