Welcome Guest, Not a member yet? Register   Sign In
Authentication by email and group/access level
#2

[eluser]davidbehler[/eluser]
Either do this
Code:
$sql = "SELECT * FROM users WHERE email = ? AND groupid = ? LIMIT 0,1";
$query = $this->db->query($sql, array($email,5));
or this
Code:
$this->db->where('email', $email);
$this->db->where('groupid', 5);
$query = $this->db->get('users', 1);
You can't mix Active Record and 'simple' sql.


Messages In This Thread
Authentication by email and group/access level - by El Forum - 10-14-2009, 04:22 AM
Authentication by email and group/access level - by El Forum - 10-14-2009, 06:22 AM
Authentication by email and group/access level - by El Forum - 10-14-2009, 07:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB