News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPBuilder.com:
Use PDO to Access Just About Any Database from PHP
April 25, 2011 @ 08:17:51

New on PHPBuilder.com there's a tutorial from Leidago Noabeb about using the PDO functionality that comes installed on many PHP platforms out there to access just about any database you might need to work work. This includes technology like MySQL, DB2, SQLite and PostgreSQL.

PHP Data Objects, or "PDO" as it is commonly known, is a lightweight database abstraction layer that is arguably the best, at least in terms of speed. A great deal of this speed is owing to the fact that the PDO extension was compiled with C/C++. The extension became available in PHP5, and as with any other database abstraction layer, its aim is to provide a uniform interface to access a variety of databases. This is also a way for developers to create portable code for a variety of platforms.

The tutorial shows you how to find the enabled PDO connection types for your installation (and where to go if you have access to turn more on or off). They show an example connection - in this case, to a MySQL database - and how to run a query or two using this new resource.

0 comments voice your opinion now!
pdo access database tutorial mysql sqlite postgresql


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Build a New App with Laravel and EmberJS in Vagrant

SitePoint: Build a Photo Gallery Using CakePHP and Flickr

Ivo Jansch's Blog: Donít use addslashes for database escapes

DevShed: Using Abstract Factory Classes in PHP 5 to Work with Online Forms

Developer.com: Build your own MVC Framework: Making Headway


Community Events

Don't see your event here?
Let us know!


php7 community laravel5 framework xdebug library release series voicesoftheelephpant introduction install api laravel language interview extension unittest podcast example opinion

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework