A lightweight, consistent interface for writing database extensions and accessing databases in PHP

<?php
$dbh 
= new PDO('odbc:sample''db2inst1''ibmdb2');

$cnt $dbh->exec("DELETE FROM fruit WHERE colour = 'red'");

echo 
"Deleted $cnt rows.";
?>








PDO: PHP Data Objects
Date: Friday, September 16th, 2005
Time: 14:45 - 16:15