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:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 2:23 PM
To: [EMAIL PROTECTED]
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 : [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]