Library to Connect to Mssql 2008 Express Edition with PHP

Which is better to use?

  • mssql_connect
  • odbc_connect
  • or PDO for odbc?

Answers


You should use PDO, and make a habit out of it.

Why?

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?


Need Your Help

Golang function similar to getchar

console go getchar

Is there function similar to getchar able to handle tab press in console? I want to make some sort of completion in my console app.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.