Welcome Guest, Not a member yet? Register   Sign In
Query Builder
#1

I have studying a code below, I am curious why there is no select statement in the code? And it works perfectly fine. Thank you

$this->db->from('Users');
$where_array = array( 'Username' => $username,
                                  'Password' => $password,
                                 'Active' => 1);
  $this->db->where($where_array);
  $query = $this->db->get();
Reply
#2

When a query is executed through the Query Builder that doesn't have any select statement specified, it assumes select *.
Reply
#3

(08-19-2018, 08:21 PM)kilishan Wrote: When a query is executed through the Query Builder that doesn't have any select statement specified, it assumes select *.

Thanks I just want to clarify it, because I can't find it in the documentation.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB