Back to Blog
Sql error code firebird5/31/2023 Let's run an invalid INSERT query and see if they're honored: echo 'Test Exception:' PDO offers three different error handling strategies: The connection to the db is estabilished and the table is correctly created. $db->exec('ALTER TABLE testuser ADD CONSTRAINT INTEG_13 PRIMARY KEY (ID) ') ![]() $query_create_table = exec($query_create_table) A quick test - Create a sample table $db = new PDO ("firebird:dbname=localhost:/path/to/pdotest.fdb", 'userid', 'password') If you're working with PHP and Firebird, you already know that the PHP5 Firebird extension (php_interbase) definitely represents an huge improvement over its PHP4 predecessor.Īlso, you've certainly heard about the PHP Data Objects (PDO) extension, which "defines a lightweight, consistent interface for accessing databases in PHP".īut what's the status of the PDO_Firebird driver ( docs)? Test of its current status: what works and what doesn't. ![]()
0 Comments
Read More
Leave a Reply. |