国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數(shù)據(jù)庫 > MySQL > 正文

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

2024-07-24 12:56:44
字體:
供稿:網(wǎng)友

//此頁面為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());




?>

<html>
<head>
<title>xiaoyang</title>
<meta http-equiv="content-type" content="text/html; charset=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")&&(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>
</head>

<body bgcolor="#ffffff" text="#000000">
<?

include "js/menu.php";
?>




   
<div id="layer6" ></div>
<div id="layer5" >  

    <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#ffccff">
      <tr>  
         
      <td width="22%" height="17">  
        <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["userid"] ;?></font> </div>
      </td>
      </tr>
      <tr>  
        <td width="22%">  
          <div align="center"><font color="#ff3399" size="2">內(nèi)容</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 "&nbsp;&nbsp;".$file[$i]."<br>";?></font></div>
      </td>
      </tr>
    </table>




   <?


   for($j=1;$j<6;$j++)              //顯示回復(fù)內(nèi)容
   {
    $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 "<br>";
   echo " <table width=100% border=1 cellspacing=0 cellpadding=0      bordercolor=#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["userid"]." </font> </div></td> </tr><tr>";  
   echo " <td width=22%><div align=center><font color=#ff3399 size=2>內(nèi)容</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 "&nbsp;&nbsp;".$file[$i]."<br>";
    echo "</font></div>";
   echo "   </td>  </tr>    </table>";
    }
   }

   ?>

<br><br>
</div>
<div id="back" >  
  <hr color="#ff9999" noshade>
</div>
<div id="goback" >  
  <div align="center"><a href="php3.php?p=1&&table=<?echo $table ;?>" target="_self" onmouseover="window.status=''; return true"><font size="2" color="#ff33ff">返回</font></a></div>
</div>
<div id="lay" >
  <hr noshade color="#ff9999">
</div>
<div id="laye" >  
  <div align="center"><a href="say.php?id1=<? echo $id."&&table=".$table ;?>" target="_self" onmouseover="window.status='';return true"><font size="2" color="#ff33ff">回復(fù)</font></a></div>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 沾益县| 龙陵县| 鹤岗市| 沙坪坝区| 西畴县| 鄂伦春自治旗| 金秀| 呈贡县| 宜阳县| 陆河县| 方正县| 昭觉县| 沧源| 五常市| 湖南省| 陆丰市| 绥芬河市| 永丰县| 肇东市| 遂川县| 周至县| 武汉市| 汪清县| 满城县| 西畴县| 北辰区| 峨眉山市| 栾城县| 石城县| 贵州省| 石屏县| 左贡县| 张北县| 塔河县| 肥乡县| 镇沅| 尉氏县| 辛集市| 长泰县| 固原市| 林甸县|