in reply to After parsing .xls the rows getting emerged
my $error_sth = $error_db->prepare("SELECT Error_list from error_potra +it WHERE Date='$date' and Type='$type'"); $error_sth->execute() or die $DBI::errstr;
Don't use dynamic SQL! :) That is, don't stick variables directly in your statements. Use placeholders for security. It's really easy too. Something like:
my $error_sth = $error_db->prepare("SELECT Error_list from error_potra +it WHERE Date=? and Type=?"); $error_sth->execute($date, $type) or die $DBI::errstr;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: After parsing .xls the rows getting emerged
by ravi45722 (Pilgrim) on Oct 09, 2015 at 04:00 UTC | |
by chacham (Prior) on Oct 09, 2015 at 13:29 UTC | |
by Anonymous Monk on Oct 09, 2015 at 07:32 UTC |