News Feed
Sections




News Archive
feed this:

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

Chad Lung's Blog:
A quick intro to using PHP PDO with MySQL
March 17, 2011 @ 09:52:55

Chad Lung has posted an introduction to PDO, PHP Data Objects, in a simple PHP script:

PHP PDO (PHP Data Objects) ship with PHP 5.1 and above and is very easy to work with. Today I'm going to show you one way of performing CRUD actions on a MySQL database using PDO. Keep in mind what I'll show you is only one way of doing things and just a fraction of what PDO can do.

He shows how to connect it to your MySQL database (via the connect string) and, based on his sample "pdo-demo.users" table, use prepared statements to insert and select data into/out of the table. There's a full code listing at the end showing a comprehensive view of each of the types - select, insert, update and delete.

0 comments voice your opinion now!
pdo mysql tutorial introduction phpdataobjects


Lukas Smith's Blog:
Let's think PDO!
October 26, 2009 @ 10:32:03

Lukas Smith has formally kicked off a restart of the PDO (PHP Data Objects) abstraction layer, trying to get interest back into this part of the PHP project and get developers back into patching and creating more features on it as a whole.

The problem with PDO's current state is that there are just so many bugs open that it seems like a maintain. Plus the original creator(s) are busy with other things, which means the learning curve is steep. Which makes it all the more important that we both have new guys as well as experienced core developers on this. I think for too long we have waited for RDBMS vendors to bring in the momentum. However since we decided to not play according to the "rules" they have proposed, its obviously our job and not theirs.

He asks that all that are interested in closing out those bugs and really getting the development of PDO back on track sign up for the mailing list and check out the brainstorming page on the PHP wiki on general ideas and thoughts on where the project should be headed.

0 comments voice your opinion now!
pdo phpdataobjects restart interest



Community Events





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


community library api bugfix introduction laravel package tips install list symfony release opinion interview language series voicesoftheelephpant framework deployment podcast

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