Welcome Guest, Not a member yet? Register   Sign In
Simple query question
#12

[eluser]TheFuzzy0ne[/eluser]
Have you considered using the active record class?
Code:
FROM `user`
                WHERE
                    `user_name` = '" . $this->CI->db->escape() . "' and
                    `password` = md5(concat(md5(" . $this->CI->db->escape($password_login) . "), salt))
            ");
$this->db->where('user_name', $username_login);
$this->db->and_where('password', );
return $this->db->get('user', 'md5(concat(md5(' . $this->db->escape($password_login) . '), salt))', FALSE);
The above code is untested

I can't see why that wouldn't work for you. But it's 2:10AM here, and my brain is working about as fast as a snail on Valium.


Messages In This Thread
Simple query question - by El Forum - 02-17-2009, 07:16 PM
Simple query question - by El Forum - 02-17-2009, 07:37 PM
Simple query question - by El Forum - 02-17-2009, 07:39 PM
Simple query question - by El Forum - 02-17-2009, 07:40 PM
Simple query question - by El Forum - 02-17-2009, 07:43 PM
Simple query question - by El Forum - 02-17-2009, 07:45 PM
Simple query question - by El Forum - 02-17-2009, 07:48 PM
Simple query question - by El Forum - 02-17-2009, 07:50 PM
Simple query question - by El Forum - 02-17-2009, 07:56 PM
Simple query question - by El Forum - 02-17-2009, 08:00 PM
Simple query question - by El Forum - 02-17-2009, 08:01 PM
Simple query question - by El Forum - 02-17-2009, 08:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB