Since you are using a table display, the nested <ol> and <li> tags can't be used to number since they will reset with each table row.
The best solution is probably to manually keep track of the row number in the php and echo the current row number manually instead of using an <ol> or <li> tag.
If you attach the page I can help (I think you attached the wrong .php page in your original post)