Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- PDO() or mysqli()?


coopster - 1:27 pm on Jun 1, 2011 (gmt 0)


If you already have your own consistent interface for accessing databases in PHP then considering PDO may end up being more work for you. Remember that "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..."

Many developers write their own abstraction class which mimics that which you see in PDO. For example, I wrote one before PDO had support for the mysqli functions which I use (the "i" in mysqli stands for "improved" and is the preferred API for MySQL >= version 4.1; see mysqli overview for details [php.net])


Thread source:: http://www.webmasterworld.com/php/4320174.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com