- 论坛徽章:
- 1
|
为什麽这个perl脚本生成的HTML没有任何显示
把apache的error_log貼出來..
另外<head>;</head>;那段少了...
发表于: 2004-03-07 20:46 发表主题: 为什麽这个perl脚本生成的HTML没有任何显示
--------------------------------------------------------------------------------
我写了如下一个perl脚本,来生成html页,可是用浏览器访问它时,去没有任何显示,也不报错。请教。
print "Content-type: text/html\n\n";
use DBI;
$dbh=DBI->;connect("dbi:Oracle:demo", "lb1", "lib8771")
or die "Can't connect: $DBI::errstr\n";
print "<html>;<body>;<h1>;Customer table</h1>;";
$sth=$dbh->;prepare("SELECT firstname, address FROM df1.customer")
or die" $DBI::errstr\n";
$sth->;execute() or die "$DBI::errstr\n";
看起來應該是database根本沒連上... |
|