# ¼ò½é

 After much trial and error i found out you should use the following to connect to a firebird database: <?php   $db = new PDO ("firebird:dbname=localhost:C:\\path\\to\\database\\MyDatabase.FDB", "username", "password"); ?> NOTE: in the 1st part of the connection string there can be NO spaces else you will get NULL. The string provided on this site does not work and will give no error only NULL.  thomas at last-it dot de 04-Feb-2006 09:52  if youre dsn syntax is wrong, see ritsaert's comment, there maybe no errormessage!  ritsaert at continuit dot nl 19-Dec-2005 10:43  The connection string for a firebird PDO connection is different than described above. It is something like:$DB = new PDO("firebird:dbname=T:\\Klimreg.GDB", "SYSDBA", "masterkey"); after dbname= the default connection string for Interbase and Firebird databases is used as presented to either gds32.dll or fbclient.dll.