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

(01-01-2018, 11:39 PM)XtreemDeveloper Wrote: $emial=''abc@abc.com';
$pass= 123;

$this->db->select('*')->from('user')->where(' email',$email)->where('password',$pass)-> get()->result();

You are using different variable name insist of where condition.

Correct code:

$email=''abc@abc.com';
$pass= 123;

$this->db->select('*')->from('user')->where(' email',$email)->where('password',$pass)-> get()->result();

sorry that was typing mistake. This is not the error i am facing. if i use "$this->db->select('*')->from('user')->where(' email',$email)->where('password',$pass)-> get()->result();" still it shows "select  * from users 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-01-2018, 11:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB