"Justin" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> INSERT INTO database VALUES( 'bill's bowtie');

Bad syntax: try
    INSERT INTO database ( fieldname ) VALUES ( 'this string' )

> and then I want to feed it back into phpMyAdmin it gives me an error.
> Basically, it's confused by the middle apostrophe.  So how can I dump this
> statement back into phpMyAdmin other than by manually adding a slash
before
> each apostrophe that will confuse it?

AddSlashes()

NOTE that MySQL will interpret these and
turn the string back to the original internally,
so there is no need to StripSlashes() when
retrieving the string.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to