or download this
$dbh->do(qq{UPDATE `pot` SET `status` = "issued", `checkno` = ?, `stat
+uschanged` = ? WHERE `status` = "preissue" AND `apdid` = ? AND $filep
+arts[$_checkAmt] IN SUM(amount)}, undef, @placeholder);
# @placeholder will contain all the values for the ?....