PHP Reference Book Blog

PHP Reference: Beginner to Intermediate PHP5

Jul-21-08

Sprintf() Tip

posted by Mario Lurig

From the book:

For MySQL security, you can use sprintf() to force user input to have a maximum length and be valid for the structure of your database. Use the precision specifier to automatically parse the string submitted by GET or POST.

Similar Posts:

Share and Bookmark:
  • del.icio.us
  • StumbleUpon
  • Reddit
  • Digg
  • Facebook
  • MySpace
  • Twitter
  • NewsVine
  • Tumblr
  1. Sprintf() Tip | MySQL Security Said,

    [...] original here: Sprintf() Tip mysql solarismysql solarisRelated Posts ColdFusion/MySQL security vulsql-mode=NO_BACKS LASH_ESCAPES [...]

Add A Comment