Login   Register  
PHP Classes
elePHPant
Icontem

Pagination

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Receive Mail  >  All threads  >  Pagination  >  (Un) Subscribe thread alerts  
Subject:Pagination
Summary:Pagination without db
Messages:2
Author:Paulo Rodrigues Felisbino
Date:2011-02-08 12:46:48
Update:2011-02-09 04:37:36
 

  1. Pagination   Reply   Report abuse  
Picture of Paulo Rodrigues Felisbino
Paulo Rodrigues Felisbino
2011-02-08 12:46:48
Hi,

It's possible to use pagination without putting the messages in a db?
Because if i have many messages, it stays all in one single page.

Hugs,
Paulo

  2. Re: Pagination   Reply   Report abuse  
Picture of mitul koradia
mitul koradia
2011-02-09 04:37:36 - In reply to message 1 from Paulo Rodrigues Felisbino
Hi you can create pagination without modifying receivemail class file. As explain in the example file you can get total mail count of your inbox using $obj->getTotalMails(). You can use this count and loop through pagination. Only thing is when user connect and visit page one by one you have to reconnect the mailbox for each page visit.

Hope this is useful information

Regards
Mitul