• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to make login like codeigniter, hello guest, hello username

#1
[eluser]noviceCODER[/eluser]
it seems to be a big problem for me doing this all night,

first im not able to get the first_name from my database

in my members_model:

Code:
function validate()
{
  $this->db->select('first_name');
  $this->db->where('email', $this->input->post('email'));
  $this->db->where('password', md5($this->input->post('password')));
  $query = $this->db->get('registration');

  if($query->num_rows == 1)
  {
   return TRUE;
  }
}

i can't find a way to make this right

please guide me tnx
Thanks for reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.