March 12th, 2008, 6:34 PM
|
#14 (permalink)
|
|
after g, before i
Resident.
Joined in Jul 2004
Lives in N,BC,CA
8,033 posts
Gave thanks: 48
Thanked 129 times
|
Quote:
Originally Posted by Mark
PHP: mysql_real_escape_string - Manual
(edit: by that i mean the function mysql_real_escape_array())
I use that in all of my applications when i have large amounts of posts. However it doesn't work when passing arrays through POST, such as multiselect boxes or multiple checkboxes; it will null the array. Haven't figured out why yet 
|
You have to use a weird array_map conditional to check to see if it's an array or not. I have a code snippet somewhere... I may look it up and post it later.
|
|
|