php3-list | 199908

[PHP3] How to treat with single quote? From: xu (xu <email protected>)
Date: 08/31/99

Hi, Buddies:

   I have a emergency problem with single quote, please give me some
advice.

    After input text with single quote in a input text box or textarea,(e.g.
1990's picture) after the text submit;

1. in the next page, the single quote will show as \', no ' as it is
inputted in the front page; I want to use str_replace to treat with this,
but is there any more good idea?

2. if want to submit to mysql database, since in <? $query="insert into
fieldname1 values ('$fieldname1')"; ?>, there is already single quote in the
$fieldname1, so it can't input into the mysql database, I try \' to instead
', it still not work.
How can I do?

ThanX in advace!

-- 
PHP 3 Mailing List <http://www.php.net/>
To unsubscribe, send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
To contact the list administrators, e-mail: php-list-admin <email protected>