News Feed
Sections




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

Greebo.net:
Converting your PHP app to MySQLi prepared statements
January 04, 2010 @ 13:46:13

From Greebo.net there's a recent post that looks at converting the current database functionality in your application over to the MySQLi functionality and making use of prepared statements as a later of protection for your queries.

Okay, you've got like a zillion SQL queries in your PHP app, and probably 95% of them have a WHERE clause, and you need to make them safe so people will still download and use your app. Because if you don't fix your injection issues, I will rain fire on your ass. These are the steps you need to take to convert to prepared statements.

The guide is two steps you'll need to make the transition - "PHP 4 is dead. Upgrade to PHP 5" and "make sure your hoster has MySQLi". The major part of the update is under the first point where he gives code examples and suggestions to follow about how to "harden" your environment to prevent and issues that lax SQL methods might have caused and a simple example of a move from MySQL to MySQLi.

0 comments voice your opinion now!
mysql mysqli convert prepared statements tutorial


blog comments powered by Disqus

Similar Posts

NETTUTS.com: Creating a File Hosting Site with CodeIgniter

Stefan Mischook's Blog: Cannot load mysql extension error - Video Tutorial How To

SitePoint PHP Blog: MySQL Transactions & Why They Can’t Be Emulated in PHP

GoodPHPTutorials.com: SQL Injections in PHP with MySQL

Gonzalo Ayuso: Releasing unmanaged resources (a PHP port from C#’s “using” statement)


Community Events





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


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

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