Forum Moderators: coopster
$subject=$_POST['subject'];
$content=$_POST['content'];
echo $subject;
echo $content;
$result=mysql_query("UPDATE Thread SET Subject='$subject', Content='$content' where Id='$threadId'");
there are not problem for the "echo $subject" and "
echo $content;"
but if rewrite as following, it does update the values from database.
$result=mysql_query("UPDATE Thread SET Subject='subject', Content='content' where Id='$threadId'");