I'm primarily a ColdFusion coder, but I do occasionally work in PHP. In CF there is a tag that can be used within your SQL query called <cfqueryparam>. The purpose of doing so is to prevent a SQL Injection Attack by parameterizing the comparison value in the WHERE clause. This way somebody can't just put a semicolon after an URL parameter and start dropping tables on you. Does PHP have an equivalent to the <cfqueryparam> tag in ColdFusion?
Related Article:
http://www.macromedia.com/devnet/mx/coldfusion/articles/cfqueryparam.html
Thanks!
Rick