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

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

 2008-02-15 17:59:04 来源:WEB开发网   
核心提示:for($i=1;$i<6;$i++) { $re="r".$i; if(!$lin["$re"]) break; } $sql="update ".$ta

  for($i=1;$i<6;$i++)
    {
     $re="r".$i;
     if(!$lin["$re"])
     break;
    }
  $sql="update ".$table." set ".$re."='$id' where id='$id1'";

      }
  else  
  $sql="insert into ".$table." (id,userid,date1,title,content,row)values('$id','$userid','$date1','$title','$content','$row1')";
  $result=MySQL(和PHP搭配之最佳组合)_query($sql)or die(MySQL(和PHP搭配之最佳组合)_error());


  if($result)
    {
   
    header("Location:php3.php?p=1&&table=$table");
    exit ;
    }
  }
}


?>


<html>
<head>
<title>xiaoyang</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript1.2" src="js/menu_comment.js"></script>
<script language="JavaScript1.2" src="js/fw_menu.js"></script>
<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">
<div id="Layer1" style="position:absolute; left:31px; top:1px; width:560px; height:46px; z-index:10">
<script language="JavaScript1.2">fwLoadMenus();</script></div>




  
<div id="Layer6" style="position:absolute; left:409px; top:29px; width:118px; height:17px; z-index:6"></div>
<div id="Layer5" style="position:absolute; left:86px; top:63px; width:464px; height:303px; z-index:7"> 
 <form name="form1" method="post" action="<? echo $PHP_SELF ?>">
  <table width="98%" border="1" cellspacing="0" cellpadding="0" bordercolor="#FF99FF">
   <tr> 
    <td width="26%" height="42"> 
     <div align="center"><font size="2" color="#FF33FF">题目</font></div>
    </td>
    <td width="74%" height="42"> 

上一页  1 2 3 4  下一页

Tags:BBS php mysql

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