Problem with special characters

From: Date: Thu, 08 Nov 2001 16:14:11 +0000
Subject: Problem with special characters
Groups: php.db 
Request: Send a blank email to php-db+get-14145@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.db (#14145) next »