08-07-2007, 06:07 AM
[eluser]webdude[/eluser]
I am using the HTML Table Class to generate a table via data from my db. How do I remove the heading values that get carried across from my sql code.
Eg: the below sql would output the header col-1 and col-2
The aim is to create a table in the following format:
I am using the HTML Table Class to generate a table via data from my db. How do I remove the heading values that get carried across from my sql code.
Eg: the below sql would output the header col-1 and col-2
Code:
$this->load->library('table');
$query = $this->db->query("SELECT col-1, col-2 FROM my_table");
echo $this->table->generate($query);
The aim is to create a table in the following format:
Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th scope="row"> </th>
<td> </td>
</tr>
</table>