my $sql = "INSERT INTO tblErrorLog (clientID, streamID, errorDetails) VALUES (?,?,?)"; my $sth = $dbh->prepare($sql); $sth->execute($clientID,$streamID,$message);