RE: [PHP] HTML Coding in mySQL field

From: Date: Fri, 16 Feb 2001 06:47:56 +0000
Subject: RE: [PHP] HTML Coding in mySQL field
Groups: php.general 
Request: Send a blank email to php-general+get-40114@lists.php.net to get a copy of this message
any kind of field that accepts text (CHAR, VARCHAR, BLOB (TEXT, LONGTEXT) etc) is OK. htmlspecialchars will encode that for you and show HTML as HTML visibly. see here: www.php.net/htmlspecialchars Cheers, Maxim Maletsky -----Original Message----- From: Thomas Edison Jr. [mailto:thomasedisonjr@yahoo.com] Sent: Friday, February 16, 2001 2:23 PM To: php-general@lists.php.net Subject: [PHP] HTML Coding in mySQL field IN one of the fields being offered to the user, the user is expected to enter HTML tags alongwith the text. How can i display this text as html formatted on my PHP3 page? What should be the field type in the mySQL db? should it be TEXT? Regards, T. Edison jr. ===== Rahul S. Johari (Director) ****************************************** Abraxas Technologies Inc. Homepage : http://www.abraxastech.com Email : abraxastech@yahoo.com Tel : 91-4546512/4522124 ******************************************* __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ -- 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

« previous php.general (#40114) next »