Re: problem reading fields from db with quotes

From: Date: Wed, 17 Oct 2001 18:55:27 +0000
Subject: Re: problem reading fields from db with quotes
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71381@lists.php.net to get a copy of this message
Try the htmlspecialchars() function. At 03:57 PM 10/17/2001 -0300, WebDev wrote:
Hi, I read data from a MySQL database, create the formatted html and assign all the code to a variable for sending as a html-based email. But if record data contains quotes, for example if the value in field4 is: team "Super Dave" note the quotes around the Super dave. The output will stop at the end of team and dump anything after the first quote. How can I get around this??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
Sliante, Richard S. Crawford (mailto:rscrawford@mossroot.com) http://www.mossroot.com/ AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that one can see rightly; what is essential is invisible to the eye." -Antoine de Saint-Exupéry "Push the button, Max!"

« previous php.general (#71381) next »