in reply to escape characters for dbi

If you use placeholders, you don't have to worry about escaping.
$sth2 = $dbh->prepare("SELECT SUM(number) FROM $serverTabl_4 where nam +e = ?"); $sth2->execute("O'Connor");

-- Randal L. Schwartz, Perl hacker