i am trying to display html values from my database into a web page. i am using tinymce as text editor. the data already stored as html values but when i tried to display it to a web page, the values display like this. example:
<p>THIS IS <strong>APPLICATION MANAGEMENT</strong></p>
my code to display is
<?php
$user_name = "BLANK";
$password = "BLANK";
$database = "BLANK";
$server = "BLANK";
$db_handle = mysql_connect($server, $user_name, $password);
$db_found = mysql_select_db($database, $db_handle);
if ($db_found) {
$SQL = "SELECT * FROM service WHERE service_id=1";
$result = mysql_query($SQL);
while ( $db_field = mysql_fetch_assoc($result) ) {
print $db_field['contents'];
}
mysql_close($db_handle);
}
else {
print "Database NOT Found ";
mysql_close($db_handle);
}
?>
my question is how can i display that html values exactly like when i am using tinymce. what i mean is i want to display that html value like this:
<p>THIS IS <strong>APPLICATION MANAGEMENT</strong></p>
to this
THIS IS APPLICATION MANAGEMENT
hope anybody can assist me..