Location: PHPKode > projects > Matt's March Madness > trunk/addcomment.php
<?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");
	
?>
Return current item: Matt's March Madness