Re: [PHP] inserting free-form text with quotes to mysql

2001-07-21 Thread Matthew Garman
Ahh yes, that was exactly what I needed. (I knew it was simple!) But that brings up another question: whenever I have POST information propagate over more than one page, is it generally a good idea to *always* use htmlspecialchars () on my data? I.e., even if the data shouldn't need htmlspecia

RE: [PHP] inserting free-form text with quotes to mysql

2001-07-20 Thread Don Read
On 20-Jul-2001 garman wrote: > I'm creating a specialized "suggestion box" type of web application in PHP. > I'm using MySQL for data storage. > > Whenever I try to submit text that contains a double quote character ("), > the > submission gets truncated at the first occurance of a double quot

Re: [PHP] inserting free-form text with quotes to mysql

2001-07-20 Thread rm
you can try the lazy man's wayI just replace the double quotes using ereg with " whatever the html code is for quotes. I store in my mysql that way and write it to web pages --- garman <[EMAIL PROTECTED]> wrote: > I'm creating a specialized "suggestion box" type of > web application in

Re: [PHP] inserting free-form text with quotes to mysql

2001-07-20 Thread Jason Bell
Friday, July 20, 2001 12:44 PM Subject: RE: [PHP] inserting free-form text with quotes to mysql > Dude! I already said that wasn't working :) > > MG > > >= Original Message From "Jason Bell" <[EMAIL PROTECTED]> = > >$newstring = addslashes($

RE: [PHP] inserting free-form text with quotes to mysql

2001-07-20 Thread garman
Dude! I already said that wasn't working :) MG >= Original Message From "Jason Bell" <[EMAIL PROTECTED]> = >$newstring = addslashes($oldstring); > >then, use $newstring for everything should work. > >- Original Message - >From: "garman" <[EMAIL PROTECTED]> >To: <[EMAIL PRO

Re: [PHP] inserting free-form text with quotes to mysql

2001-07-20 Thread Jason Bell
$newstring = addslashes($oldstring); then, use $newstring for everything should work. - Original Message - From: "garman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 20, 2001 11:57 AM Subject: [PHP] inserting free-form text with quotes to mysql > I'm creating a