Thanks again Daniel ... I'll look into the html_entity_decode and see what I can figure out. You have a great weekend too! -----Original Message----- From: Daniel Brown [mailto:parasane@xxxxxxxxx] Sent: Saturday, March 01, 2008 7:06 PM To: VanBuskirk, Patricia Subject: Re: str_replace removing unwanted characters... Replying back on-list, Patricia, so you can get some feedback from the talented people here, as well. On Sat, Mar 1, 2008 at 6:30 PM, VanBuskirk, Patricia <pvanbuskirk@xxxxxxxxxxx> wrote: > Thanks Daniel! I appreciate your help!! I've fixed the mismatched > search items and got the slashes out. > > I think I've narrowed down what was being causing that particular order > to kick back. I copied and pasted the text from the database to > dreamweaver. Where it said " For 1 month - a recording" and in two > other cases, the dashes were showing as "–" in the code. When I > removing those particular dashes, the order went through. She said she > copied and pasted that text, so I guess that code was copied in. How > can I check for freaky things like that? That would be something best handled by built-in functions such as html_entity_decode();. Encapsulated in a mysql_real_escape_string() function return, it should be safe, but for readability, compatibility, and other-ability (whatever that may be), you may still want to read up more on the HTML-translation family here: http://www.php.net/manual/en/function.html-entity-decode.php Any other questions, please don't hesitate to ask. Have a great weekend! -- </Dan> Daniel P. Brown Senior Unix Geek <? while(1) { $me = $mind--; sleep(86400); } ?> -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php