reply.php(用於回覆主題)
疑難題;
if (!$cook_user)
{echo "<script>"; <br>echo "parent.location.href='index.php'"; <br>echo "</script>";}
else {include ("connect.inc.php");
$query = "從 my_user 中選擇*,其中 user='".$cook_user."' 和密碼='".$cook_password."'";
$res = mysql_query($query);
if (!$res)
{echo "";}
include "connect.inc.php";
if ($content) {$c ("'","mysinglequotes",$content);
$c
$c
$query = "INSERT INTO guestbook (name,type,content,icon,time_open,time_close,answer_count,answer_name,main_id) VALUES ('".$cook_user."', 0,'".$content."',".$icon.",now(),now(),1,'".$cook_user."',".$theme_id.")";
$res = mysql_query($query);
if ($res)
{$query = "更新留言簿設定 time_close=now(),answer_count=answer_count+1,answer_name='".$cook_user."' where id=".$theme_id;
$res = mysql_query($query);
if ($res)
{echo "";}}}}
?>