Browsers

googlebot51.1%
Firefox17.3%
Chrome9.1%
IE 68.5%
hiding5.8%
Safari1.9%
Opera1.3%
iPhone1.3%
IE 71.1%
IE 81.1%
IE 50.9%
Wordpress0.2%
Konqueror0.1%
yahoobot0.1%
Win CE0.0%
unknown0.0%
In coding femtoblogger I wanted a simple way to avoid SQL injection attacks. I think I've settled on one simple rule:

"Never paste any variable into a query string."

That is much simpler than the "never paste user input into a query string" or the "always call the proper escape function for variables" methodology. I use the '?' and bind all variables.

Somethings come out in two lines (prepare,execute) instead of one (query), but overall I think the code is more legible without having to read through the concatenation, string delimiting, and escape functions.