WEB开发网
开发学院WEB开发PHP BBS(php & mysql)完整版(二) 阅读

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

 2008-02-15 17:59:02 来源:WEB开发网   
核心提示://此页面为look.php <? include "signup/MySQL(和PHP搭配之最佳组合).inc"; $sql="select * from ".$table." where id='$id'";
//此页面为look.php
<?
include "signup/MySQL(和PHP搭配之最佳组合).inc";
$sql="select * from ".$table." where id='$id'";
$result=MySQL(和PHP搭配之最佳组合)_query($sql)or die(MySQL(和PHP搭配之最佳组合)_error());
$row=MySQL(和PHP搭配之最佳组合)_fetch_array($result);
$number=++$row["number"];

$sql="update $table set number='$number' where id='$id'";
MySQL(和PHP搭配之最佳组合)_query($sql)or die(MySQL(和PHP搭配之最佳组合)_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" 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> 

Tags:BBS php mysql

编辑录入:coldstar [复制链接] [打 印]
赞助商链接