PDA

View Full Version : Include & symbol in MySql entry



Lacuna
March 9th, 2004, 11:27 AM
Hello All!

I cant figure out how to let a user enter & in there entry.

(i.e. Golf & Country Club)

Anyone know the answer to this one?

(I really really REALLY dont want to go through each one and
change them to 'and' )

~ Seretha :love:

Jubba
March 9th, 2004, 12:46 PM
$users_string = str_replace("&", "&", $users_string);
You have to escape it because it can be read as an illegal character. The HTML output will still read it as &