$qtable=$dbh->quote_identifier($table); $sql = "SELECT * FROM $qtable"; $sth = $dbh->prepare( $sql ) or die; $sth->execute();