The PHP Data Objects (PDO) extension defines a lightweight, consistent
interface for accessing databases in PHP. Each database driver that
implements the PDO interface can expose database-specific features as
regular extension functions.
<?php
$dbh = new PDO('odbc:sample', 'db2inst1', 'ibmdb2');
$cnt = $dbh->exec("DELETE FROM fruit WHERE colour = 'red'");
echo "Deleted $cnt rows.";
?>