I'm trying to insert HTML code into my MySQL table to be displayed later.
MySQL table is a TEXT type, collation is UTF8_unicode_ci
I wrote a simple PHP script that allows me to enter the HTML code into a standard HTML form TEXTAREA box....the code is then passed with the POST technique to another script page, converted to a variable ($html), then inserted into the proper FIELD in the correct TABLE.
If I enter standard text into the TEXTAREA form, it INSERTS the data correctly into the TABLE so I know the script is working properly.
However, when I try it with HTML tags included, nothing ever gets INSERTED into my TABLE. I've read that we should be able to save HTML code inside MySQL tables but I can't seem to get it work.
Anyone know what to do here? Note: I'm trying to do this with PHP coding. Thanks!
MySQL table is a TEXT type, collation is UTF8_unicode_ci
I wrote a simple PHP script that allows me to enter the HTML code into a standard HTML form TEXTAREA box....the code is then passed with the POST technique to another script page, converted to a variable ($html), then inserted into the proper FIELD in the correct TABLE.
If I enter standard text into the TEXTAREA form, it INSERTS the data correctly into the TABLE so I know the script is working properly.
However, when I try it with HTML tags included, nothing ever gets INSERTED into my TABLE. I've read that we should be able to save HTML code inside MySQL tables but I can't seem to get it work.
Anyone know what to do here? Note: I'm trying to do this with PHP coding. Thanks!