Welcome Guest, Not a member yet? Register   Sign In
table class help
#1

[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


Messages In This Thread
table class help - by El Forum - 02-17-2009, 03:14 PM
table class help - by El Forum - 02-17-2009, 03:25 PM
table class help - by El Forum - 02-18-2009, 08:40 AM
table class help - by El Forum - 02-18-2009, 08:57 AM
table class help - by El Forum - 02-18-2009, 12:54 PM
table class help - by El Forum - 02-18-2009, 01:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB