Wednesday, April 12, 2006

Php PDO and Firebird

A quick snippet ...

  1. try {
  2. $dbh = new PDO("firebird:dbname=localhost:C:\\Programmi\\Firebird\\Firebird_2_0\\examples\\empbuild\\EMPLOYEE.FDB", "SYSDBA", "masterkey");
  3. foreach ($dbh->query('SELECT COUNTRY from COUNTRY') as $row) {
  4. print_r($row);
  5. }
  6. $dbh = null;
  7. } catch (PDOException $e) {
  8. print "Error!: " . $e->getMessage() . "
    "
    ;
  9. die();
  10. }
  11. ?>

1 comment:

Anonymous said...

I posted an entry about PDO Firebird status a while back.

HTH