or, more appropriately, use the database-specific escape function...
for mysql:
http://www.php.net/manual/en/function.mysql-escape-string.php
http://www.php.net/manual/en/function.mysql-real-escape-string.php
--
Scott Hurring
Systems Programmer
EAC Corporation
scott (*) eac.com
--
"Martin Cliffo
uot;,... and \ ?
> >
> > Note: putting a \\ to add \ doesnt help coz for one time it works one i
> open
> > the entry in edit mode again i have to put \ before all the \.
> > please help
> > regards
> > anil
> >
> > - Original Message -
>
"Martin Clifford" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 12:12 PM
Subject: Re: [PHP] ' giving problem while inserting in table.
> You DON'T have to use stripslashes() on data coming out of a database. The
&
ly 12, 2002 10:49 AM
Subject: Re: [PHP] ' giving problem while inserting in table.
Use addslashes() on ALL strings before inserting them into your database.
Then, on your frontend, extract the data and use stripslashes() on all
strings.
Hope to help!
Martin Clifford
Homepage: http://www.
Use addslashes() on ALL strings before inserting them into your database. Then, on
your frontend, extract the data and use stripslashes() on all strings.
Hope to help!
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completesource.net/forums/
>>> "Anil
5 matches
Mail list logo