Niy has asked for the wisdom of the Perl Monks concerning the following question:
In the command line, the output:#!E:/users/yin/perl/bin print "Context-type text/html\n\n"; print "THis is try for DBI module\n"; use DBI; $dbh=DBI->connect('dbi:ODBC:db1'); $sqlstatement="SELECT Field1 FROM Customers"; $sth = $dbh->prepare($sqlstatement); $sth->execute || die "Could not execute SQl statement, maybe invalie?" +; while (@row=$sth->fetchrow_array) { print "@row\n"; }
But in browser, I only can see:Context-type text/html THis is try for DBI module Frog Jameson Gold
The output from the database disappears, anyone helps? Thanks in advance.THis is try for DBI module
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 1: why browser can not see?
by tilly (Archbishop) on Feb 17, 2001 at 01:48 UTC | |
by dws (Chancellor) on Feb 17, 2001 at 11:11 UTC | |
by sierrathedog04 (Hermit) on Feb 17, 2001 at 18:19 UTC | |
|
Re: why browser can not see?
by eg (Friar) on Feb 17, 2001 at 01:34 UTC | |
by a (Friar) on Feb 17, 2001 at 11:05 UTC | |
|
Re: why browser can not see?
by Anonymous Monk on Feb 23, 2001 at 01:17 UTC |