CodeIgniter Select Statement with Where clause

后端 未结 4 480
自闭症患者
自闭症患者 2021-01-28 17:55

Hi I\'m new to CodeIgniter and I just want to know How will I query from my MySql Db, a Select Statement with a where clause, I know it can be searched from the net but whenever

4条回答
  •  一个人的身影
    2021-01-28 18:20

    In Codeigniter with Method Chaining Style :-

     $data['getData'] = $this->db->get_where('table_name',array('column_name'=>$var))->result_array();
    

提交回复
热议问题