Welcome Guest, Not a member yet? Register   Sign In
Remove header values using HTML Table Class
#1

[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

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">&nbsp;</th>
    <td>&nbsp;</td>
  </tr>
</table>


Messages In This Thread
Remove header values using HTML Table Class - by El Forum - 08-07-2007, 06:07 AM
Remove header values using HTML Table Class - by El Forum - 08-07-2007, 08:44 AM
Remove header values using HTML Table Class - by El Forum - 08-07-2007, 09:10 AM
Remove header values using HTML Table Class - by El Forum - 08-07-2007, 09:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB