problem count rows on table in pagination? |
[eluser]SaSa[/eluser]
I have an problem with rownum in following code. it is this that, in each page of pagination rows in table be counted from the beginning. For example, the clear: P1: If we're on the first page of pagination, rows are the counts: Code: 1 Columns1 Code: 1 Columns5 P2: The I want to be counted row in table,(on the second page of pagination and ...): Code: 5 Columns5 This code: Code: $data['results'] = $this->db->query("SELECT @rownum:=@rownum+1 rownum, t.* ". Code: function show($offset = 0) With respect
[eluser]SaSa[/eluser]
More about this: I do not want that in each page of pagination, rows are counted from the beginning. The next page will be counted on every prev page. see this images: http://i.stack.imgur.com/2QzSc.gif http://i.stack.imgur.com/komL3.gif http://i.stack.imgur.com/6RQIb.gif my view: Code: <div class="table_show">
|
Welcome Guest, Not a member yet? Register Sign In |