Problem with special characters

From: Date: Thu, 08 Nov 2001 15:43:13 +0000
Subject: Problem with special characters
Groups: php.general 
Request: Send a blank email to php-general+get-73887@lists.php.net to get a copy of this message
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 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. Can anyone help? Thanks, Don

« previous php.general (#73887) next »