Remove header values using HTML Table Class |
[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'); The aim is to create a table in the following format: Code: <table width="100%" border="0" cellspacing="0" cellpadding="0">
[eluser]sophistry[/eluser]
EDIT: fixed set_header() to say set_heading(). The manual page for the HTML Table class is a good place to start learning about the set_heading() method.
[eluser]webdude[/eluser]
have already looked at that but it does not say anything about table headers. thanks
[eluser]sophistry[/eluser]
So, you want to be able to change what is in the th cell? set_heading() method will allow you to do that. send it your nbsp. um... this is copied directly from the generate() method: Code: // Is there a table heading to display? If this is not what you are asking, then your question needs to be restated with code. |
Welcome Guest, Not a member yet? Register Sign In |