News Feed
Sections




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

Martin Psinas' Blog:
Switching to PDO
August 04, 2011 @ 10:17:59

In a new post to his blog Martin Psinas talks about some of his pains experienced with upgrading his code to use PDO instead of the mysql extension for database interaction.

I read not too long ago that the mysql library in PHP is being deprecated as of v6.0 in favor of mysqli or PDO, so of course I had to update all of my database code keep on top of things. I spent about 5 or 6 hours over the course of 2 days familiarizing myself with the new syntax and updating my code offline. Without any testing, I decided I could go ahead and push the code "live" because I'm just that over-confident sometimes, although I did make a backup in case anything went wrong (or so I thought).

Two problems jumped out immediately - a SQL error caused by this bug and the other being a problem with preparing his statement inside of a session handling method.

0 comments voice your opinion now!
pdo mysql switch problem prepare session limit bug


blog comments powered by Disqus

Similar Posts

Community News: PHP Remote Exploit - Floating Point Issue Causes Freeze/Crash

Zend Developer Zone: It's That Time Again - Announcing August's ZF Bug Hunting Days

Codewalkers.com: Book Raffle - Beginning PHP and MySQL 5 - From Novice to Professional

PHPRefresh.com: Managing Sessions and State with PHP

Hasin Hayer's Blog: Converting standard wordpress into a SQLite powered multi user blogging platform


Community Events





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


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

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