[eluser]buckboru[/eluser]
I am trying to use the table class to build a table. I have it working mostly, but i have 1 field that i do not want to display.
in my controller i have
$data['phonelist'] = $this->phone_model->get_phonelist();
in my model i have
Code:
$query = $this->db->get('tstmis.phoned01');
foreach ($query->result_array() as $row)
{
$result[] = $row;
}
return $result;
in my view i have
echo $this->table->generate($phonelist); ?>
phoned01 has an id field that i do not want to display.
What is the simplest way to accomplish this?
The only way i can think of is to have a statement in my model that excludes the id on the selection.
Thanks