There is a solution posted on the original thread.
PHP already has functions to deal with this problem.
str_replace is a waste of time.
"Natalie Leotta" <[EMAIL PROTECTED]> wrote in message
> I would recommend that you try something like str_replace and replace all
> the double quotes with nothing. You'll probably need to put a slash in
> front of the quote in there, but I think it should work.
> Good luck!
> > -----Original Message-----
> > From: Don [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, November 08, 2001 11:14 AM
> > To: php-db list
> > Subject: [PHP-DB] Problem with special characters
> > Hi,
> > I have a mysql database that contains various data. I am using PHP to
> > pull out the data and display it within a HTML form. I am having
> > with certain data that contains escaped characters.
> > Example: field contains --> mr "John Smith"
> > My PHP code is:
> > echo "<td width=\"50%\"><input type=\"text\" name=\"name" . $rownum .
> > size=\"46\" value=\"" . $queryRow[name] . "\"></td>";
> > The result displayed is --> mr
> > What happened to "John Smith" ???
> > I have tried the functions stripslashes and addslashes but still no
> > Can anyone help?
> > Thanks,
> > Don
PHP Database 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]