To: "Linda Xu"

> How about printing out the arrary as
>
> foreach  $f  (@re_list_ref) {
>   print "$f\n";
> }
>
> Then when it prints, it will write directly to a web page. To generate an
> HTML page, you must include this statement somewhere in the script, before
> you print out anything else:
>
> print "Content-type:text/html\n\n";
>
> This is a content header that tells the receiving web browser what sort of
> data it is about to receive - in this case, an HTML document.
>
> Todd Derenne
> Engineer and other
>
> ----- Original Message -----
> From: "Linda Xu" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, May 16, 2002 2:16 PM
> Subject: question for display n records per page
>
>
> > Hi,
> >
> > I am a beginner of using perl.
> >
> > I need to write a script to retrived records from oracle database and
> > display them in CGI web page by n records per page.
> >
> > I use an array reference to store all the records :
> >
> >      $re_list_ref=$dbh->selectall_arrayref($sql,{}, @bind);
> >
> > How could I make a URL to display next n records? Do I need to create a
> > package to print the records? or use a template file? or redirect to
> itself?
> >
> >
> >
> >
> > TKS
> >
> > Linda Xu
> > General Magic
> >
> >
>

Reply via email to