[eluser]PhilTem[/eluser]
The simplest solution would be to have an auto-incrementing column that you can use for doing this. On the other, when looping over the array for outputting it you can run a counter variable that counts the current position. And you know how many results you have by count_all_results();
Basically, the second thing would be
Code:
$results = $this->model->get();
$count_results = count($results);
for ( $i = 0; $i < $count_results; $i++ )
{
// Here, $i is the position in the array of results and $count_results would be 100
}
But I guess there's no other way of doing what you want or, to my knowledge, no real way