Page 1 of 1

Insert HTML into MYSQL table

Posted: Tue Oct 03, 2006 9:55 pm
by Tyronem
Hi all,

I am trying to insert HTML into a mysql table (news) (so my news items can look nice without having to type up multiple seperate pages)

table is fairly simple:

News_ID
News_Title
News_Teaser
News_Content - HTML gets inserted into this field

Standard insert (with no html) works fine

What data type in MySQL allows for HTML to be inserted into it?

Cheers.

Posted: Tue Oct 03, 2006 10:10 pm
by volka

.

Posted: Wed Oct 04, 2006 1:33 am
by Tyronem
Cheers,

also needed to convert to htmlspecialchars
(just found out)

Thanks!

Posted: Wed Oct 04, 2006 3:05 am
by ody