Say I have a database table with three columns: ID, Name, and Age. I need to find the user with a specific (unique) ID, and then return the age. Currently, I am using the fo
You simply use this in one row.
$query = $this->db->get_where('mytable',array('id'=>'3'));