Example code using the CGI module.  See the CGI perldocs for more info.

------------------------------------------------------
use strict;
use CGI qw(:standard);

print header;
print start_html(
        -title => "Testing cgi.pm",
        -BGCOLOR => 'white',
        -author => '[EMAIL PROTECTED]');
print h1("A header");
print p(
"A paragraph of text.  This is a paragraph"
);

print table( {-border => "1"},
             caption("CGI Import Tags"),
             Tr({-align => 'CENTER'},
                [
                 th(['Tag', 'Description']),
                 td([strong('cgi'), 'All CGI-handling methods']),
                 td([strong('form'), 'Form generating methods']),
                 td([strong('html2'), 'HTML 2.0 elements']),
                 td([strong('html3'), 'HTML 3.0 elements']),
                 td([strong('netscape'), 'Netscape extensions']),
                 td([strong('html'), 'All HTML-generating shortcuts']),
                 td([strong('shortcuts'), 'Like html']),
                 td([strong('all'), 'Import All available methods'])
                 ]
                ));

print end_html;



> -----Original Message-----
> From: KC LO at MAXIS [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 16, 2000 9:26 AM
> To: Joe Schell; Perl-Win32-Users Mailing List
> Subject: Re: Creation of table output with CGI on HTML Page
>
>
> Hi Joe,
>
> I'm able to extract data out from the database the only problem left is
> unable to display the output in the format i wanted.....
> i unable to use (rather don't how ) html table statements effectively to
> display out the data in a table format inaccordance to the
> sequence i need.
> Any ideas?
> Still looking........
>
> regards,
> KC
>
> >You use the html table statements to display the data.
> >You use the Win32::ODBC or the DBI/DBD::ODBC modules to get the data from
> >the database.
> >
> >> Behalf Of KC LO at MAXIS
> >>
> >> Hi,
> >>
> >> Does anyone knows how to display data extracted from a database and
> >> displayed it in table form on HTML page ?
> >> I could not figure out what perl-CGI command to use for such purpose.
> >> Example of format wanted displayed in HTML format :-
> >>
> >> Product   Price   Location
> >> data1      data2    data3
> >> data1a    data2a  data3a
> >> etc......
> >>
> >> 'Product' , 'Price' and 'Location' are the headers for the 3 columns
> >> data1,data2 & data3 are data taken from a MsAccess database
> after finding
> >> the 'minimum' pricing. There are about 100 rows of such data with each
> row
> >> containing  infor for those 3 columns.
> >>
> >> Thanks for any ideas contributed.......
> >> >
> >> regards,
> >> KC
> >>
> >> >
> >>
> >
> >
>


---
You are currently subscribed to perl-win32-users as: [[email protected]]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to