Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

Insert html tags in mysql table with C#

0

45 views

i have this question about mysql data in a table... how can i insert an html text with tags, text, etc in a mysql table? What datatype do i need to store something like that and what do i need to encode or whatever i need to perform the insert? I'm using c# 4.0 and mysql connector 6.3.6

Thanks!

asked June 8, 2011 7:31 am CDT
posted via StackOverflow

1 Answer

0
Best answer
 

Use the TINYTEXT, TEXT, MEDIUMTEXT or LONGTEXT datatypes depending on how much data you are expecting.

If you are dealing with UTF-8 encoded html make sure that your collation matches that.

answered June 8, 2011 8:27 am CDT

Your answer

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions
Eliminate html tags
February 2, 2011