$dbh->do("insert into frame (indate,siteid,serial,contract,installdate) values (CURDATE(),\'$frame_siteid\',\'$frame_serial\',\'$frame_contract\',STR_TO_DATE($frame_installdate,\'%m/%d/Y\')"); #### DBD::mysql::db do failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3 at ./excel.syr.frame.extract.pl line 91.