Jump to content

[SOLVED] best way of pagination.


corillo181

Recommended Posts

which would you consider the best way of doing pagination?

 

by putting the result in a array or by using mysql.

 

right now i have it with mysql but i was thinking about putting all result in a array and then do the paging threw an array, but i dont know about speeds in php.

 

which way would be faster?

Link to comment
https://forums.phpfreaks.com/topic/79191-solved-best-way-of-pagination/
Share on other sites

It would be better to do the pagination through MySQL LIMITs. That way is more efficient, since the MySQL server only sends you only the data you use to your script - much better than having it send you all of the data, and then cropping it off and leaving it for garbage collection.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.