Welcome Guest, Not a member yet? Register   Sign In
function check
#1

[eluser]Gabi3xz[/eluser]
Hello i have a function for select id, email, password for check login
Code:
//function check
function check_user($email, $password) {
$q = $this->db
          ->select('id', 'email_address', 'password')
          ->where('email_address', $email)
          ->where('password', sha1($password))
          ->limit(1)
          ->get('users');
          
          return $q->row();

//call function for check login
$result = $this->call_db->check_user($this->input->post('email_address'),$this->input->post('password'));
How can extract id for set in session?


Messages In This Thread
function check - by El Forum - 05-29-2012, 05:13 AM
function check - by El Forum - 05-29-2012, 07:11 AM
function check - by El Forum - 05-29-2012, 07:37 AM
function check - by El Forum - 05-29-2012, 07:51 AM
function check - by El Forum - 05-29-2012, 07:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB