News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
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!
code smell parameterised queries sql validation filtering code smell parameterised queries sql validation filtering



Similar Posts

PHPied.com: HiLiteMe.com updated

Fernando Bassani's Blog: Putting the PHP/Java Bridge to work - I

ScratchProjects.com: Build an RSS Feed Reader using Ajax and PHP

International PHP Magazine: IPM Poll Question: Which One is Most Dangerous?

Pádraic Brady's Blog: Extending the Mapper: Stars and Planets


Community Events







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


framework cakephp PEAR releases book application ajax developer example code database release mysql PHP5 package zendframework zend conference job security

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