Re: Problem with special characters

From: Date: Thu, 08 Nov 2001 16:59:01 +0000
Subject: Re: Problem with special characters
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-73916@lists.php.net to get a copy of this message
Hallo, Thursday, November 08, 2001, 4:43:13 PM, you wrote: > 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 > trouble 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 > luck. try htmlentities(); -- Thargor mailto:Thargor@vergessene-welt.de http://www.vergessene-welt.de

« previous php.general (#73916) next »