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

$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();
Reply


Messages In This Thread
RE: where() showing "IS NULL" instead of variable value - by XtreemDeveloper - 01-01-2018, 11:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB