Welcome Guest, Not a member yet? Register   Sign In
where() showing "IS NULL" instead of variable value
#5

(This post was last modified: 01-02-2018, 04:08 AM by ktmonty.)

(01-02-2018, 03:52 AM)InsiteFX Wrote: Did you use this to see what is going on?

PHP Code:
$temp $this->db->last_query(); 

Also is there suppose to be a space after the opening quote before email?

PHP Code:
//                                           | space?
$this->db->select('*')->from('user')->where(' email',$email)->where('password',$pass)-> get()->result(); 

returns 'select * from user where email IS NULL and password IS NULL';
Reply


Messages In This Thread
RE: where() showing "IS NULL" instead of variable value - by ktmonty - 01-02-2018, 04:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB