CodeIgniter Forums
Generating table from query without header - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Generating table from query without header (/showthread.php?tid=37764)



Generating table from query without header - El Forum - 01-19-2011

[eluser]Apocryphon[/eluser]
I'm creating a simple one-column table like this:

Code:
$query = $CI->db->query('SELECT team FROM teams ORDER BY team');
$index = $this->table->generate($query);

How do I get a result that doesn't display team, which is the column header?


Generating table from query without header - El Forum - 01-19-2011

[eluser]umefarooq[/eluser]
you can create your own template for table check the user guide if you don't want to print headers

http://ellislab.com/codeigniter/user-guide/libraries/table.html