my $Q="INSERT INTO logs VALUES ('', ?, ?, ?, ?, ?, ?, ?)"; my $sth=$dbh->prepare($Q)||die "Cant prepare statement: $DBI::errstr"; my $rv=$sth->execute($typ,$time,$date,$severity,$action,$ip,$line) || die "Can't execute statement: $DBI::errstr";