News Feed
Sections




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

Metapundit.net:
Code Smells II
October 26, 2006 @ 09:14:00

Following up from the previous article on the Metapundit.net blog, there's part two of the "Code Smells" series - a look at bad things to do in your code (to make it "smell").

This (and any subsequent posts in the series) will be more limited in scope - a single bad example and a corresponding solution.

This time, the spotlight is on parameterised queries - inserting the variables directly into a SQL statement string versus filtering them or inserting them via a custom query() function. He points out that there's no need to create this kind of filtering/database handling class on your own, though - there's already been one created by the fine folks of PEAR (using the autoExecute function

0 comments voice your opinion now!
smell parameterised queries sql validation filtering smell parameterised queries sql validation filtering


blog comments powered by Disqus

Similar Posts

PHPit.net: Taking a first look at the AutoCRUD for PHP library

SecurityFocus.com: Five common Web application vulnerabilities

The Bakery: Five New Posts - Custom Views, CSS, ViewInFile, ActsAs and Email Validation

Templora.com: Basic PHP Script Security

PHPBuilder.com: File uploads made easy


Community Events





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


conference series bugfix code deployment interview language zendserver list podcast threedevsandamaybe introduction laravel framework community release tips symfony api development

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