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 -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -