2016-08-26 7 views
0

のメッセージ:配列にすることなく行う必要がありますあなたの関数の$でmodels/db_get.phpCodeIgniterの:配列の文字列変換ソリューションへ

function get_where_conditions1($tb,$where) 
{   
    $this->db->select('*'); 
    $this->db->distinct(); 
    $this->db->from($tb); 
    $this->db->join("restaurants", $tb.".".'restaurant_id = restaurants.id',"LEFT"); 
    $this->db->where_in('branches.'.'$where'); 
    $this->db->order_by('branches.id','desc'); 
    $query= $this->db->get()->result_array(); 
    $out=array_unique($query);  
    return $out;  
} 
+0

詳細パラメータでこの関数を呼び出す方法を投稿してください。 –

答えて

0

アレイファイル名

文字列への変換そのタイプを知っている。

私は問題が$ this-> db-> where_in( 'branches'。 '$ where')行にあると思います。 それは$ this-> db-> where_in( 'branches'、$ where)でなければなりません。

関連する問題