This is my function to get stuff from a SQL db...
Is there a more elegant way to do this?
function getResults_1($id)
{
$this->db->select(array("a_1","a_2"))->from('Survey');
$this->db->where('user_id', $id);
return $this->db->get();
}
function getResults_2($id)
{
$this->db->select(array("a_6","a_8","a_13","a_14"))->from('Survey');
$this->db->where('user_id', $id);
return $this->db->get();
}
and so on... (to 5)...