php - Let me know solution because something wrong in my codeigniter model -


error number: 1054

unknown column 'array' in 'where clause'

select `cat_name` (`cat_manager`) `parent_id` = array 

if using codeigniter why don't use codiegniter active record library make sql queries writing them plain sql.

$select = $this->db->select('cat_name')                ->from('cat_manager')                ->where_in('parent_id', $yourarray);  $result = $this->db->get()->result_array(); 

Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

excel vba - VBA Proxy auto-configuration for http requests -

php - phpWord - Tables with borders in headers/footers -