Welcome Guest, Not a member yet? Register   Sign In
How to do this with table class
#1

[eluser]Bainzy[/eluser]
Hello everyone,

I'm a little stumped as to how to only return the cols I want from a database end show them with the table class here is what I have so far :

$this->table->set_heading(array('forums', 'topics', 'posts', 'lastPost'));
$data = $this->HomeModel->fetchAllRows('topics');
$this->table->generate($data);

now the problem here is that my database has 5 rows in it and I only want to show the 4 that corrospond to the headers, how can I do this ?

Regards
chris


Messages In This Thread
How to do this with table class - by El Forum - 01-16-2010, 06:39 PM
How to do this with table class - by El Forum - 01-16-2010, 09:21 PM
How to do this with table class - by El Forum - 01-17-2010, 07:25 AM
How to do this with table class - by El Forum - 01-17-2010, 01:41 PM
How to do this with table class - by El Forum - 01-18-2010, 03:29 AM
How to do this with table class - by El Forum - 01-18-2010, 07:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB