User Profile

Collapse

Profile Sidebar

Collapse
mazdajai
mazdajai
Last Activity: Nov 27 '12, 03:49 AM
Joined: Nov 25 '12
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • mazdajai
    replied to cgi limit display messages per page
    in Perl
    I think my problem is to specific the for-loop that limit the page displays into the last foreach loop. Sorry for the messy code, still a work in progress.
    -----
    Code:
    @data = &OpenFile("data.txt");
    $total = @data;
    print "content-type: text/html\n\n";
    print "Total $total Messages<hr>\n";
    $maxRecords = 3;
    $pageCount = $total / $maxRecords + .4 ;
    $pageid = sprintf ("%.0f",
    ...
    See more | Go to post

    Leave a comment:


  • mazdajai
    started a topic cgi limit display messages per page
    in Perl

    cgi limit display messages per page

    Hi,

    I am working on a cgi assignment where I need to break 10 messages, limit each page to display 3 messages and the reminder (1 in this case) on the last page.

    I am having trouble using arithmetic operations to divide the pages.

    Any suggestions?
    See more | Go to post
No activity results to display
Show More
Working...