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.
Insert HTML into MYSQL table
Moderator: General Moderators
text or blob
see http://dev.mysql.com/doc/refman/5.0/en/blob.html
see http://dev.mysql.com/doc/refman/5.0/en/blob.html
You may also want to check out http://uk.php.net/manual/en/function.my ... string.php