if(isset($_POST['submit']))
{
if(empty($_SESSION['content'] ) ||
strcmp($_SESSION['content'], $_POST['content']) != 0)
{
}
if(empty($errors))
{
$content=$_POST['content'];
$commentid=$_POST['commentid'];
echo '<p id="comm">'.'<a href="profile2.php?id='.$user.'&#link1">comment</a>'.'</p>';
mysql_query("INSERT INTO comment2(user_id, nome, cognome, content, foto, comsubid)VALUES('$my_id', '$nome', '$cognome', '$content','$foto','$commentid')");
}
}