include "linkfox.inc.php"; include "info.inc.php"; ?>
$query="select * from foxbbs where id='".$id."'"; //这个ID是从上一页面也就是FOXBBS.PHP里传过来的。 $req=mysql_query($query); if ($req) { $bbsmes=mysql_fetch_array($req); $djnum=$bbsmes["djnum"]+1; //点击数加一 $query="update foxbbs set djnum='$djnum' where id='".$id."'"; $req=mysql_query($query); }
$query="select * from useinfo where usename='".$bbsmes["usename"]."'"; //从用户信息库里取出发帖用户的信息 $req=mysql_query($query); if ($req) { $useinfo=mysql_fetch_array($req); switch ($useinfo[11]) //因为我是用一位数字来表示用户身份 { case ($useinfo[11]==1): $useinfo[11]="会员"; break; case ($useinfo[11]==2): $useinfo[11]="版主"; break; case ($useinfo[11]==3): $useinfo[11]="管理员"; break; case ($useinfo[11]==4): $useinfo[11]="站长"; break; default: $useinfo[11]="游客"; break; } } ?>
$hfft="foxbbs/".substr($bbsmes[5]).".bbs"; if (file_exists($hfft)) //是否有回复 { $tem=@file($hfft); $temp=implode("",$tem); //先把数组转变成字符串,不用加分融符 $tem=explode("δεζ",$temp); $num=count($tem)-1; for ($i=0;$i { $x=$i+1; $temp=explode("ㄞㄚㄓ",$tem[$i]); //把每条回复信息分开 if ($temp[5]>0) $temp[5]="images/".$temp[5].".gif"; //显示回复内容 else $temp[5]="images/a.gif"; if (!$temp[6]) $temp[6]="不想告诉你"; echo "
"; echo "
回贴作者
"; echo "
回 复 内 容 (第NO.".$x."号)
"; echo "
".$temp[1]."
OICQ:".$temp[2]." 来自:".$temp[6]."
"; echo "
".$temp[0]."
"; echo "
".$temp[7]."
"; echo "
"; echo ""; echo " "; echo " "; echo "
"; echo "
"; }
} ?>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn