作者:Fater-_635 | 来源:互联网 | 2018-04-22 07:10
此页面为look.php<?include"signupMySQL.inc";$sql"select*from".$table."where";$resultmysql_query($sql)ordie(mysql_error())
//此页面为look.php
include "signup/MySQL.inc";
$sql="select * from ".$table." where id='$id'";
$result=mysql_query($sql)or die(mysql_error());
$row=mysql_fetch_array($result);
$number=++$row["number"];
$sql="update $table set number='$number' where id='$id'";
mysql_query($sql)or die(mysql_error());
?>
include "js/menuhead.php"
?>
include "js/menu.php";
?>
题目
|
|
作者
|
|
内容
|
$file=explode("n",$row["content"]); $num=count($file);
for($i=0 ;$i<$num;$i++) echo " ".$file[$i]." ";?>
|
for($j=1;$j<6;$j++) //显示回复内容
{
$re="r".$j;
if($row["$re"])
{
$id2=$row["$re"];
$sql="select * from bbs_re where id='$id2'";
$result=mysql_query($sql)or die(mysql_error());
$row8=mysql_fetch_array($result);
echo "
";
echo "
";
echo " 题目 ";
echo " | ";
echo " ".$row8["title"]." |
";
echo "";
echo "作者 | ";
echo " ";
echo "".$row8["userid"]." |
";
echo " 内容 ";
echo " | ";
echo ""; $file=explode("n",$row8["content"]);
$num=count($file);
for($i=0 ;$i<$num;$i++) echo " ".$file[$i]." ";
echo " ";
echo " |
";
}
}
?>
返回
" target="_self" OnMouseOver="window.status='';return true">回复