• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.