By: Funky
Date: 2005-07-05
Time: 00:32
|
Efficient pagination with MySQL 4.0.x and TBSI search a efficient way to do pagination with TBS with a query which returns more than 3500 rows... here is my solution :-)
PHP CODE:
HTML:
Hope this helps, i'm a PHP beginner so i'm sure it is possible to improve this solution... |
||
By: neverpanic
Date: 2005-11-19
Time: 00:07
|
Re: Efficient pagination with MySQL 4.0.x and TBSNice one. Hope this will be in the next TBS version!
These are actually 3 mysq queries but it's still better than loading all the recordsets. |
||
By: Tom
Date: 2005-11-19
Time: 14:59
|
Re: Efficient pagination with MySQL 4.0.x and TBSSorry to be dense on this -- would you mind saying more about why this is "3 mysql queries" -- I'm not getting it.
Thx for any help you can give in explaining for a newbie. |
||
By: neverpanic
Date: 2005-11-19
Time: 22:52
|
Re: Efficient pagination with MySQL 4.0.x and TBSSorry, I made a mistake... only 2 queries...
if you go through the php code you will see 2 mysql_query functions... This function sends a request to the mysql_server, it queries. Hence, 2 mysql queries. |
||
By: Tom
Date: 2005-11-20
Time: 13:16
|
Re: Efficient pagination with MySQL 4.0.x and TBSI couldn't see "three" queries either...
AFAIK - the second "mysql_query" -- althought it looks like an additional query -- is actually a hit to the "query cache" not to the database itself. From Mysql Doco's
|
||
By: neverpanic
Date: 2005-11-20
Time: 14:07
|
Re: Efficient pagination with MySQL 4.0.x and TBSBut it's still a connection to the MySQL server. And it's still putting some load on the MySQL server. And it still has to wait until the MySQL server responds.
|
||
By: chiry
Date: 2011-02-14
Time: 07:06
|
Re: Efficient pagination with MySQL 4.0.x and TBSSome php pagination scripts you can check out .:http://www.phpkode.com/scripts/tag/pagination/
|
||
By: andy
Date: 2011-02-14
Time: 07:08
|
Re: Efficient pagination with MySQL 4.0.x and TBSThank you for your sharing! Chiry!
I found some tutorial about pagination in php listed on the site you submit. It is great helpful for me! PHPKode is a grant site! |