Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Mar 6, 2018 9:11 AM
Views: 6
  1. $this->load->library('table');
  2. $this->table->set_heading('Col1', 'Col2', 'Col3');
  3. $data = array(
  4.         array('Name', 'Color', 'Size'),
  5.         array('Fred', 'Blue', 'Small'),
  6.         array('Mary', 'Red', 'Large'),
  7.         array('John', 'Green', 'Medium')
  8. );
  9.  
  10. echo $this->table->generate($data);