HT = $this->load->database('HT', TRUE); } public function get_ic_contents_by_list($ic_id_list) { $ic_id_list=trim($ic_id_list); $ic_id_list.=0; $sql="SELECT * from infoContents where ic_id in ($ic_id_list) order by charindex(','+ltrim(ic_id)+',', ',$ic_id_list,')"; $query=$this->HT->query($sql); if ($query->result()) { $row = $query->result(); return $row; } else { return FALSE; } } }