getMessage() . "\n"; exit; } // SET VARIABLES /* $dbh->prepare('SET ANSI_NULLS ON')->execute(); $dbh->prepare('SET CONCAT_NULL_YIELDS_NULL ON')->execute(); $dbh->prepare('SET ANSI_WARNINGS ON')->execute(); */ $sql = 'DELETE FROM "cf_zz_DraftPageItem" WHERE ( id = 129)'; $stmt = $dbh->prepare($sql); if (false === ($result = $stmt->execute())) { echo '
'; echo 'Error Code: ' . $stmt->errorCode() . '
'; print_r($stmt->errorInfo()); } else { echo 'Success' . PHP_EOL; var_dump($stmt->fetchAll(PDO::FETCH_ASSOC)); } echo $stmt->queryString; echo PHP_EOL;