Re: addslashes problem
| From: | Glen Scott | Date: | Wed, 20 Dec 2000 09:56:00 +0000 |
| Subject: | Re: addslashes problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31184@lists.php.net to get a copy of this message | ||
Hi,
At 17:26 19/12/00, enthalpy wrote:
im having problems with the addslashes function. i use a form to update a mysql database and use the addslashes because there can be various characters i need to escape in order for it to properly go in to the mysql database what i end up with is something like this werd wer\\\'d weerrr\\\'ed so it goes in to the database as werd wer\'d weerrr\'ed this is obviously not what im looking to do. any help?It looks like you don't need to addslashes() as PHP is doing this automatically for you. Check your .ini file where I'm sure you'll find magic_quotes_gpc is set on. - Glen ----------------------------------------------------- Design Solution Limited t: +44 (0)1502 513008 f: +44 (0)1502 588622 e: info@designsolution.co.uk w: http://www.designsolution.co.uk Nouvotech House, Harbour Road, Oulton Broad, Suffolk, NR32 3LZ, UK -----------------------------------------------------