最新亚洲精品福利在线,欧美一区二区三区大片,久久91无码一区二区三区,色哟哟免费观看视频入口,美女裸露双奶头屁股无裸体

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'

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

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

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