日韩精品欧美激情国产一区_中文无码精品一区二区三区在线_岛国毛片AV在线无码不卡_亞洲歐美日韓精品在線_使劲操好爽好粗视频在线播放_日韩一区欧美二区_八戒八戒网影院在线观看神马_亚洲怡红院在线色网_av无码不卡亚洲电影_国产麻豆媒体MDX

php中CI框架中查詢關(guān)聯(lián)數(shù)組方法

時間:2016-10-22 11:35:55 類型:PHP
字號:    


phpCI框架中多條件查詢數(shù)據(jù)時,可使用以下方法:
 $array = array('id' => $id, 'title' => $title, 'content' => $content);

    $this->db->where($array);

    // Produces: WHERE id= '1' AND title = 'http://www.lhqing.com' AND content= 'www.lhqing.com'

    //或者你也可以在這個方法里包含你自己的比較運算符:

    $array = array('id>1' => $id, 'title !=' => $title, 'content' => $content);

    $this->db->where($array);
?>