Hallo,
ich finde den Fehler in folgendem Skript nicht!!!
kann mir jemand helfen??
SKRIPT:
#!D:\Perl\bin
use DBI;
use CGI;
my $dsn = "DBI:ODBC:sqltest";
my $dbh = DBI->connect($dsn);
$dbh->do("INSERT INTO sqltest (Name, Nummer) VALUES ('name', 4321)");
print "Content-type: text/html\n\n";
print "<HTML>\n";
print "<BODY BGCOLOR=#FFFFFF>\n";
print "<CENTER>\n";
print "\n";
print "</CENTER>\n";
print "</BODY></HTML>";
FEHLERMELDUNG (ERROR LOG)
[Tue Aug 05 09:41:49 2003] [error] [client 130.26.121.162] Premature end of script headers: d:/apacheroot/jan-test/sql-test.pl
[Tue Aug 05 09:41:49 2003] [error] [client 130.26.121.162] DBI connect('sqltest','',...) failed: at d:\apacheroot\jan-test\sql-test.pl line 7
[Tue Aug 05 09:41:49 2003] [error] [client 130.26.121.162] Can't call method "do" on an undefined value at d:\apacheroot\jan-test\sql-test.pl line 9.