my $error_sth = $error_db->prepare("SELECT Error_list from error_potrait WHERE Date=? and Type=?"); $error_sth->execute($date, $type) or die $DBI::errstr;