0
이것은 SQL 데이터베이스에서 물건을 얻는 나의 함수입니다 ...Codeigniter : db를 선택하는 더 나은 방법은?
더 우아한 방법이 있나요?
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)...