0
我的代码不工作在数据库中。忘记密码Codeigniter3
这里是我的模型function.please告诉我什么是错的这个方法,因为它不运行在数据库:
Login_model.php
public function forgot_password()
{
$this->db->select('*');
$this->db->from('tblmvbsystemusers');
$this->db->where('sysu_email',$this->input->post('email'));
$this->db->where('sysu_status','1');
$query=$this->db->get();
$row=$query->row();
send_mail($row->sysu_name,$row->sysu_email,'admin_password_help',$row->sysu_email);
if ($query->num_rows() == 1)
return true;
else
return false;
}
也许你应该检查整数,如果这种方式已经存储在数据库中(即'$ this-> db-> where('sysu_status',1);')。 – Tpojka