Код: Выделить всё
$candidateID = '1,2,3,4,5,6,7,8,9';
function get_industry($candidateID) {
$this->db->select('current_industry');
$this->db->group_by('current_industry');
$this->db->from('candidate_details');
$this->db->where_in('user_id', $candidateID);
$query = $this->db->get();
print_r($this->db->last_query());
if ($query->num_rows() > 0) {
foreach ($query->result() as $row) {
$data[] = $row;
}
return $data;
}
return false;
}
Я не знаю, чего мне здесь не хватает.
Подробнее здесь: https://stackoverflow.com/questions/215 ... data-for-t