If magic_quotes_gpc is ON, then the data is getting addslashes() automatically on a form submission. If you are doing it again, that's where the problem is.
---John Holmes... ----- Original Message ----- From: "Mark Colvin" <[EMAIL PROTECTED]> To: "'1LT John W. Holmes'" <[EMAIL PROTECTED]> Cc: "Php (E-mail)" <[EMAIL PROTECTED]> Sent: Friday, August 02, 2002 6:37 AM Subject: RE: [PHP] StripSlashes Problem > John, > > Thank you for your reply. My magic_quotes_runtime is set to 'Off'. As you > said, I shouldn't have to use StripSlashes but would I still need to use > AddSlashes when inserting/updating? I can see the slashes in the database > when I look at the tables but I am fairly sure that I do not add slashes > twice? Are they being added automatically somewhere as a result of a setting > in the php.ini file? > With regards to my use of mysql_result as opposed to mysql_fetch_* > functions, I was ignorant of the performance hit and I will now re think > around my database code. > > > > **************************************************** > This e-mail is intended for the recipient only and > may contain confidential information. If you are > not the intended recipient then you should reply > to the sender and take no further ation based > upon the content of the message. > Internet e-mails are not necessarily secure and > CCM Limited does not accept any responsibility > for changes made to this message. > Although checks have been made to ensure this > message and any attchments are free from viruses > the recipient should ensure that this is the case. > **************************************************** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php