On Sun, 4 Feb 2007, Massoud Kohan wrote:

> I am new to the Html-template and perl.
> How can I show the resultset to the web page which Shows 10
> records per page and also page numbers on the bottom of the
> table?

HTML::Pager was designed to do this for you.  It's a little tricky to
use, but you can study the code if you just want to see an example of
how it's done.

For the database side of things, be sure to use LIMIT and OFFSET to
get your data-set back from MySQL.  Selecting everything like you're
doing now is going to be very slow for large lists.

-sam

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Html-template-users mailing list
Html-template-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to