CodeIgniter Forums

Full Version: Query Builder
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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();
When a query is executed through the Query Builder that doesn't have any select statement specified, it assumes select *.
(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.