insert/retrieve html from db
Posted: Thu Sep 16, 2010 7:59 am
Hi ,
Is it fine to insert html data to mysql manually like this -
and retrieve like this -
I am having issues in retrieving the html - it's blank ..
Any ideas ?
Is it fine to insert html data to mysql manually like this -
Code: Select all
insert into test (x)
values("<ul><li>abcdefghijikmno.....</li><ul>")Code: Select all
$query = select x from test where uid = '1'
$output = mysql_query($output, $db) or die(mysql_error());Any ideas ?