Welcome Guest, Not a member yet? Register   Sign In
DB_active_rec get vs get_where
#1

[eluser]Unknown[/eluser]
I've just started looking at this code and I wonder about one unexplained difference between these two functions.
if ($table != '')
{
$this->_track_aliases($table);
the line above is only in get, not in get_where
$this->from($table);
}
Why is that line not in get_where?
If it were, then I would suggest that get be implemented as a call to get_where.

Also, what got me started down this path:
What's the difference between
$this->db->where($data);
$query = $this->db->get('table', $num, $offset);
and
$query = $this->db->get_where('table', $data, $num, $offset);




Theme © iAndrew 2016 - Forum software by © MyBB