how to retrieve a content of a table in database(with html tags)
<p>i have made some inputs in my database table and it is saved together with its html tags.
now, i want it to be downloaded by a user.
i want to remove the html tags.
Since the file input at my database table has no format, i want the download file to be downloaded as a document file and must be compatible in MS word.</p>

<p>so far i have this for the download page</p>

<pre><code>&lt;?php
if(isset($_GET['id']))
{
include 'connect.php';


$id    = $_GET['id'];
$result = mysql_query("SELECT title, content, format FROM activity WHERE id = '$id'");

list($title, $content, $format) = mysql_fetch_array($result);
strip_tags($content);
header("Content-type: $format");
header("Content-Disposition: attachment; filename=$title");
echo $content;

mysql_close;
exit;

}

?&gt;
</code></pre>
