Very nice, but it seems that nowadays, for complex projects, your best bet is a reputable MVC framework which ships with its own DBAL.
Also, I think there's an error in a couple of code examples. Where you say:
$result = $dbh->query("select * from employee");
while ($row = $result->fetchRow()) {
echo $result['lastname'];
}
I think you mean $row['lastname'], not $result['lastname'] »
$result = $dbh->query("select * from employee"); while ($row = $result->fetchRow()) { echo $result['lastname']; }I think you mean $row['lastname'], not $result['lastname'] »