Jump to content

Is this secure?


Garethp

Recommended Posts

I would use mysql_real_escape_string - and also instead of creating many new variables (potentially hundreds), you could put them into a "safe" array

 

foreach($Array as $k=>$v)
   {
   $k = mysql_real_escape_string($k);
   $v = mysql_real_escape_string($v);
   $safe_input[$k] = $v;
   }

Link to comment
https://forums.phpfreaks.com/topic/171118-is-this-secure/#findComment-902405
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.