title: Display Categories and subcategories using CodeIgniter
body: <p>I have two table in my database, One is Categories and the other is Sub_Categories, I want to display them like this:</p>
  
  <pre><code>Categorie 1 
  sub categoie 1 
  sub categoie 2 
  sub categoie 3 
  sub categoie 4
  Categorie 2 
  sub categoie 1 
  sub categoie 2 
  sub categoie 3 
  sub categoie 4
  </code></pre>
  
  <p>But i don't know how to do this.
  In my Database table i have this fields :
  Categories: ID, Name, Icon.
  Sub_Categories: ID, Categ_id, Name</p>