[eluser]flaky[/eluser]
when you are building the array for the table, just add the extra column with the number
Code:
$this->load->library('table');
$data = array(
array(1, 'Name', 'Color', 'Size'),
array(2, 'Fred', 'Blue', 'Small'),
array(3, 'Mary', 'Red', 'Large'),
array(4, 'John', 'Green', 'Medium')
);
echo $this->table->generate($data);