Help:escape_string and stripslashes

From: Date: Sun, 07 Nov 2004 11:52:28 +0000
Subject: Help:escape_string and stripslashes
Groups: php.general 
Request: Send a blank email to php-general+get-201418@lists.php.net to get a copy of this message
I asked a question yesterday about this but I think my question is now more fine tuned: Right now I have about 50+ session variables that will be inserted into my mysql database in a transaction. I need to do the mysql_real_escape_string and because magic_quotes_gpc is turned on stripslashes as well. I'm wondering if there is a way to use a function or class within my connection script to take care of all of this ? As oppposed to listing everyone out ? I know I can pass all the variables as an array but some of the variabls are arrays themselves, so not sure how that would work. Any suggestions ? Thank you Stuart

« previous php.general (#201418) next »