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
Try this one.
$id = 'your id'; $this->db->select("*"); $this->db->from("table_name"); $this->db->where('id','$id'); $query = $this->db->get(); return $query->result_array();