As I understood from the non-working code, this is done wrong, right?
$del = $pdo->prepare("DELETE FROM `table` WHERE `id` = 6"); $del->execute() Mistake
SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute. Help me figure out how to actually do this.
$stmt->closeCursor();- rjhdby