Welcome Guest, Not a member yet? Register   Sign In
[Solved] Cannot login with model my login function
#3

Try the below and see if it works, the hash needs to be within single quotes ''

PHP Code:
public function secure_password($username)
{
 
   $this->db->select('*');
 
   $this->db->from($this->db->dbprefix 'customer');
 
   $this->db->where('username'$username);
 
   $query $this->db->get();

 
   $row $query->row_array();

 
   return $row['password'];

What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Cannot login with model my login function - by InsiteFX - 07-19-2016, 04:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB