Welcome Guest, Not a member yet? Register   Sign In
How can i show individual tag id from tags array
#1

My Controller:

public function tags($tags_id){
        $data = array();

        $data['getTags'] = $this->Frontend_model->get_tag_by_id($tags_id);       
        $data['maincontent'] = $this->load->view('frontend/tags', $data, true);
        $this->load->view('template/frontend_layouts', $data);
    }




My Model: 

public function get_tag_by_id($tags_id){
       
        $this->db->select('*');
        $this->db->from('tbl_blogs');
        $this->db->where('tags' , $tags_id);
        $query = $this->db->get();
      return  $query->result();
       
    }
Reply
#2

(This post was last modified: 02-02-2020, 05:30 AM by InsiteFX.)

How I Added Tagging Using PHP and MySQL

Tags
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB