国产午夜色司机在线观看,亚洲国产小视频在线观看,国产精品毛片一级久久,欧美高清vivoe,国产指交视频一区之二区,中文字幕在线码一区,18成禁人视频免费网站,影视中文综合国产,在线观看特色大片免费视频,午夜激情成人在线

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

時(shí)間:2016-10-22 11:35:55 類型:PHP
字號(hào):    


phpCI框架中多條件查詢數(shù)據(jù)時(shí),可使用以下方法:
 $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'

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

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

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