where() showing "IS NULL" instead of variable value |
Hello guys,
$email=''abc@abc.com'; $pass= 123; $this->db->select('*')->from('user')->where(' email',$email)->where('password',$pass)-> get()->result(); this gives result :- 'select * from uses where email IS NULL and password IS NULL'; But it works with $this->db->query(); plz help me to find why its not taking like :- 'select * from user where email="abc@abc.com" and password="123" '; Thanks, |
Messages In This Thread |
where() showing "IS NULL" instead of variable value - by ktmonty - 01-01-2018, 11:34 PM
RE: where() showing "IS NULL" instead of variable value - by XtreemDeveloper - 01-01-2018, 11:39 PM
RE: where() showing "IS NULL" instead of variable value - by ktmonty - 01-01-2018, 11:43 PM
RE: where() showing "IS NULL" instead of variable value - by InsiteFX - 01-02-2018, 03:52 AM
RE: where() showing "IS NULL" instead of variable value - by ktmonty - 01-02-2018, 04:07 AM
RE: where() showing "IS NULL" instead of variable value - by Narf - 01-02-2018, 09:03 AM
|