I\'m trying to get the last URI segment in CI, however I don\'t know what the number for it will be, as parameters (an integer) will be appended as the user clicks links within
$record_num = end($this->uri->segment_array());