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