Is there a way to insert <html> tags to mysql database?
Printable View
Is there a way to insert <html> tags to mysql database?
you would treat it exactly the same as regular text
how?
using INSERT and UPDATE sql statements
simple example --Code:INSERT
INTO contents
( page_id
, page_title
, page_url
, contents )
VALUES
( 'hello'
, 'Hello World!'
, 'http://example.com/hello.html'
, '<h1>Hello world!</h1><p>This be my <b>awesome</b> home page!</p>' )
I got that, but when I'm going to display the data in a webpage it does not show.
oh
must be a problem with your display code
I got it now,i replaced '<' with '<', looks like this
MyVariable=Replace(MyVariable,"<","<")