#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    I have this loop:


    my @loop_data = ();
    while (@results = $sth->fetchrow_array) {
    my %row_data;
    $row_data {id} = shift @results;
    $row_data {agent} = shift @results;
    $row_data {name} = shift @results;
    push (@loop_data, %row_data);
    }

    $template->param(loop_hasil=> @loop_data);
    print $template->output;


    I want the results to be limited in N (variable) results per page in the template file. Does anybody could help me with this one.

    My search script already running, but if the data getting larger, I need the results to be limited.

    Thank you very much for any help.
  2. #2
  3. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15
    see the following discussion:
    http://www.devshed.com/Talk/Forums/F...ML/000234.html



    ------------------
    SR -
    webshiju.com
    www.jobxyz.com-IT Career Portal
    ezipindia.com--WebStudio


    "The fear of the LORD is the beginning of knowledge..."
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    Thank you Shiju.
    Hope I could help you too.

IMN logo majestic logo threadwatch logo seochat tools logo