<?php
include("admin/database.php");
//include("admin/functions.php");
$from = strip_tags($_POST['from']);
//$subject = $_POST['subject'];
$comment = strip_tags($_POST['comment']);
$bracket = $_POST['id'];
$query = "INSERT INTO `comments` (`bracket`,`from`,`content`) VALUES ('$bracket','$from','$comment')";
mysql_query($query,$db) or die(mysql_error());
header('location: view.php?id=' . $bracket."#comment");
?>