首页 > 作文

BBS(php & mysql)完整版(二)

更新时间:2023-04-06 05:17:12 阅读: 评论:0

//此页面为look.php

<?

include “signup/mysql.inc”;

$sql=”lect * from “.$table.” where id=’$id'”;
road
$result=mysql_query($sql)or die(mysql_error());

$row=mysql_fetch_array($result);

$number=++$row[“number”];

$sql=”update $table t number=’$number’ where id=’$id'”;

mysql_query($sql)or die(mysql_error());

?>

<html>

<head>

<title>xiaoyang</title>

<meta http-equiv=”content-type” content=”text/html; chart=gb2312″>

<?

include “js/menuhead.php”

?>

<script language=”javascript”>

<!–

function mm_reloadpage(init) {//reloads the window if nav4 resized

if (init==true) with (navigator) {if ((appname==”netscape”)&&(parint(appversion)==4)) {

document.mm_pgw=innerwidth; document.mm_pgh=innerheight; onresize=mm_reloadpage; }}

el if (innerwidth!=document.mm_pgw || innerheight!=document.mm_pgh) location.reload();

}

mm_reloadpage(true);

// –>

</script>

</head>

<body bgcolor=”#ffffff” text=”#000000″>

<?

include “js/menu.php”;

?>

<div id=”layer6″ style=”position:absolute; left:409px; top:29px; width:118px; height:17px; z-index:1″></div>

<div id=”layer5″ style=”position:absolute; left:63px; top:61px; width:464px; height:303px; z-index:2″>

<table width=”100%” border=”1″ cellspacing=”0″ cellpadding=”0″ bordercolor=”#ffccff”>

<tr>

<td width=”22%” height=”17″&qq个性情侣分组gt;

<div align=”center”><font color=”#ff3399″ size=”2″>题目</font></div>

</td>

<td width=”78%” height=”17″>

<div align=”center”><font size=”2″ color=”#9966ff”><?echo $row[“title”] ;?></font> </div>

</td>

</tr>

<tr>

<td width=”22%” height=”24″>

<div align=”center”><font color=”#ff3399″ size=”2″>作者</font></div>

</td>

<td width=”78%” height=”24″>

<div align=”center”><font size=”2″ color=”#9966ff”><?echo $row[“urid”] ;?></font> </div>

</td>

</tr>

<tr>

<td width=”22%”>

<div align=”center”><font color=”#ff3399″ size=”2″>内容</font></div>

</td>

<td width=”78%”>

<div align=”left”><font size=”2″ color=”#9966ff”><? $file=explode(“n”,$row[“content”]); $num=count($file);

for($i=0 ;$i<$num;$i++) echo ”“.$file[$i].”<br>”;?></font></div>

</td>

</tr>

</table>

<?

for($j=1;$j<6;$j++)//显示回复内容

{

$re=”r”.$j;

if($row[“$re”])

{

$id2=$row[“$re”];

$sql=”lect * from bbs_re where id=’$id2′”;

$result=mysql_query($sql)or die(mysql_error());

$row8=mysql_fetch_array($result);

echo “<br>”;

echo ” <table width=100% border=1 cellspaci皇太极简介ng=0 cellpadding=0bordercolor=#ffccff><tr>”;

echo ”<td width=22% height我的新校园=17><div align=center><font color=#ff3399 size=2>题目</font></div>”;

echo ”</td><td width=78% height=17>”;

echo ” <div align=center><font size=2 color=#9966ff>”.$row8[“title”].”</font> </div></td> </tr><tr>”;

echo “<td width=22% height=24>”;

echo “<div align=center><font color=#ff3399 size=2>作者</font></div></td>”;

echo ” <td width=78% height=24>”;

echo “<div align=center><font size=2 color=#9966ff>”.$row8[“urid”].” </font> </div></td> </tr><tr>”;

echo ” <td width=22%><div align=center><font color=#ff3399 size=2>内容</font></div>”;

echo “</td> <td width=78%>”;

echo “<div align=left><font size=2 color=#9966ff>”; $file=explode(“n”,$row8[“content”]);

$num=count($file);

for($i=0 ;$i<$num;$i++) echo ”“.$file[$i].”<br>”;

echo “</font></div>”;

echo ”</td></tr></table>”;

}

}

?>

<br><br>

</div>

<div id=”back” style=”position:absolute; left:455px; top:30px; width:85px; height:3px; z-index:3″>

<hr color=”#ff9999″ noshade>

</div>

<div id=”goback” style=”position:absolute; left:461px; top:23px; width:120px; height:16px; z-index:2″>

<div align=”center”><a href=”php3.php文书工作?p=1&&table=<?echo $table ;?>” target=”_lf” onmouover=”window.status=”; return true”><font size=”2″ color=”#ff33ff”>返回</font></a></div>

</div>

<div id=”lay” style=”position:absolute; left:70px; top:30px; width:85px; height:3px; z-index:4″>

<hr noshade color=”#ff9999″>

</div>

<div id=”laye” style=”position:absolute; left:78px; top:23px; width:120px; height:16px; z-index:1″>

<div align=”center”><a href=”say.php?id1=<? echo $id.”&&table=”.$table ;?>” target=”_lf” onmouover=”window.status=”;return true”><font size=”2″ color=”#ff33ff”>回复</font></a></div>

</div>

<p></p>

<p></p>

</body>

</html>

本文发布于:2023-04-06 05:17:11,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/zuowen/8d341c95072e6bbd4e6c765a2c26ebb2.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

本文word下载地址:BBS(php & mysql)完整版(二).doc

本文 PDF 下载地址:BBS(php & mysql)完整版(二).pdf

标签:内容   题目   太极   作者
相关文章
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图