Hi,
I am working on code to allow users to upload html code (tags) and text to the mysql db and then have the code spit back just the text (not the tags as well):
for ($i=0; $i <$num_results; $i++)
{
$row = mysql_fetch_array($result);
echo "<p><strong> HTML Page name: ";
echo htmlspecialchars( stripslashes($row["html_page_name"]));
echo "<BR>HTML Code: ";
echo htmlspecialchars( stripslashes($row["html_page_code"]));
echo "<BR><BR>";
}
This is printing the html characters as well.
Any ideas? I know this is probably pretty basic, but I am relatively new at this. Thanks in advance. Craig