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

2016-01-29 14:34 5 1 收藏

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

【 tulaoshi.com - PHP 】

  //此页面为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
<titlexiaoyang</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" 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"  
        <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"内容</font</div
    

来源:https://www.tulaoshi.com/n/20160129/1493664.html

延伸阅读
标签: PHP
  //此页面为 top.php <html <head <titleUntitled Document</title <meta http-equiv="Content-Type" content="text/html; charset=gb2312" <script language="JavaScript1.2" src="http://img.jcwcn.com/attachment/portal"http://www.jcwcn.com/Files/BeyondPic/jcwcj/2005-12...
标签: PHP
  //完毕 wish you sucess!! # phpMyAdmin MySQL-Dump # http://phpwizard.net/phpMyAdmin/ # # 主机: localhost:3306 数据库 : database # -------------------------------------------------------- # # 数据表的结构 'bbs_html' # CREATE TABLE bbs_html (    id int(15) DEFAULT '0' NOT NULL,  &n...
标签: PHP
  //下面为menu_comment.js function fwLoadMenus() {   if (window.fw_menu_0) return;   window.fw_menu_0 = new Menu("root",92,20,"Verdana, Arial, Helvetica, sans-serif",12,"#6666ff","#ffffff","#FF9999","#6666ff");   fw_menu...
标签: PHP
  +proto.menuBorder;             var focusItem = body.document.layers[n];             focusItem.clip.width = body.clip.width;            ...
标签: PHP
  //此页面为say.php <? include "signup/mysql.inc"; if($id1){        $sql="select * from $table where id='$id1'";    //显示回复题目        $result=mysql_query($sql)or die(mysql_error()); &...

经验教程

678

收藏

28
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部