Posted By

d4rk on 04/20/07


Tagged

escape mysql php


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

jeffxl
vali29
jprice
eunjoo1984
Priestd09


Escape an entire array to prevent injection attacks


 / Published in: PHP
 

URL: http://us.php.net/mysql_real_escape_string

Usage: $POST = mysqlrealescapearray($_POST)

  1. function mysql_real_escape_array($t){
  2. return array_map("mysql_real_escape_string",$t);
  3. }

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: peteypablonz on November 21, 2007

not very secure method mate

use mine: http://snipplr.com/view/4165/clean-user-input-data--get-post-cookie-/

You need to login to post a comment.