//此页面为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());
?>
<meta http-equiv=”Content-Type” content=”text/html; charset=gb2312″>
<?
include “js/menuhead.php”
?>
<script language=”JavaScript”>
<!—ecms -ecms
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName==”Netscape”)&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// –>
</script>
<body bgcolor=”#FFFFFF” text=”#000000″>
<?
include “js/menu.php”;
?>
题目
|
<?echo $row[“title”] ;?>
|
作者
|
<?echo $row[“userid”] ;?>
|
内容
|
<? $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 ” “.$row8[“title”].”
|
“; echo “ 作者
|
“; echo “ “.$row8[“userid”].”
|
内容
“; |
“; /本文来源gao@!dai!ma.com搞$$代^@码5网@搞代gaodaima码 echo “ “; $file=explode(“n”,$row8[“content”]);
$num=count($file); for($i=0 ;$i<$num;$i++) echo " ".$file[$i]." “; echo “ “; |
“;
}
}
?>