CodeIgniter Select Statement with Where clause

后端 未结 4 512
自闭症患者
自闭症患者 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:32

    Try something like this

        $this->db->where('db_attr', $var);
        return $this->db->get('table');
    

提交回复
热议问题