12-21-2008, 07:40 PM
|
#1 (permalink)
|
|
how quixotic are you?
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
|
Is This Good Enough?
I have the following function for cleaning data for use with MySLQ and I just wanted to make sure it was sufficient before I used it in a production environment.
PHP Code:
function clean($data) { if(ini_get('magic_quotes_gpc')) { $data = stripslashes($data); } return mysql_real_escape_string($data); }
Thanks!
|
|
|
|