Seemingly not, the code below when run win MS IE 6 on a WinXP Pro machine gives me an error (shown below). I have a password on my DB, is this the problem?
Code:
#! C:/Perl/bin/perl.exe
use DBI;
$DSN = "DBI:mysql:database=league";
my $dbh = DBI->connect($DSN) || die "Can't connect";
my $qs = $dbh->prepare("Select * from admin_login");
$qs->execute();
while (my $rs=$qs->fetchrow_hashref())
{
print "username: ",$rs->{'username'}," password: ",$rs->{'password'};
print "\n";
}
$qs->finish();
$dbh->disconnect;
exit;
Error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
DBI connect('database=league','',...) failed: Access denied for user 'ODBC'@'localhost' (using password: NO) at c:\inetpub\wwwroot\picco\db_connexion.pl line 5
Can't connect at c:\inetpub\wwwroot\picco\db_connexion.pl line 5.
www.crmpicco.co.uk
www.ie7.com