Library to Connect to Mssql 2008 Express Edition with PHP
Which is better to use?
- or PDO for odbc?
You should use PDO, and make a habit out of it.
PDO is a modern and very mature interface which actually makes it fun and easy to make prepared statements. Another reason is, as stated on their manual:
PDO provides a data-access abstraction layer, which means that, regardless of which database you're using, you use the same functions to issue queries and fetch data. PDO does not provide a database abstraction; it doesn't rewrite SQL or emulate missing features. You should use a full-blown abstraction layer if you need that facility.
Did i say it was easy?