php3-list | 199908

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

> 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?

there is directive magic_quotes in php.ini, turn it off.

> 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?

use '' to insert single '

--
Tarko Tikan
KUUM Grupp OÜ
programmeerija
GSM 251 901 539
http://www.kuum.ee
mailto:tarko <email protected>

-- 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>