Look. Its simple. Strings are saves AS IS to the database.
<?php
// connect
$str = "<p>here is a paragraph</p>";
if (mysql_query("INSERT INTO tbl VALUES ('$str')")) {
echo "success";
}
?>
This saves the string <p>here is a paragraph</p> into the database.
Once again I ask.... where are these html tags coming from? Maybe you want something like...?
"INSERT INTO tbl VALUES ('<p>$str</p>)"
Really... I have no idea what your talking about.