<?
include "signup/mysql.inc";
if($id1){
$sql="select * from $table where id='$id1'"; //顯示回復題目
$result=mysql_query($sql)or die(mysql_error());
$ro " /> 性888xxxx入欧美,蜜桃成人在线,超碰国产亚洲人人

天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

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

//此頁面為say.php
<?
include "signup/mysql.inc";
if($id1){
       $sql="select * from $table where id='$id1'";    //顯示回復題目
       $result=mysql_query($sql)or die(mysql_error());
       $row=mysql_fetch_array($result);
       $title="RE:".$row["title"];

        }

$ip=$REMOTE_ADDR;
$sql="select * from user_stus where ip='$ip'";    //查詢當前用戶名
$result=mysql_query($sql)or die(mysql_error());
$row=mysql_fetch_array($result);

if(!$row)                                         //判斷用戶是否登陸
{

echo "<html><div id=Layer2  align=center z-index:1><BR><BR><BR><BR>";
echo" <div id=Layer3  align=center z-index:2><img src=pic/3.gif width=15 height=15></div>";
echo"  <div align=center>";  
echo" <p><font size=2 color=#FF33CC>嘻嘻!! 請先登陸</font></p>";
echo"<p><font size=2 color=#FF33CC><a href='".$php_SELF."?p=1&&table=$table'>返回</a></font></p> </div> </html>";

exit();
}

else $userid=$row["userid"];


if($ok)
{

    if($title==""||$content=="")
    {
        echo "<BR>      請您添完整后提交";

    }
    else{
    $id=time();                                 //提交文章
    $date1=date("Y/m/d");
    $title=htmlspecialchars($title);
    $content=htmlspecialchars($content);

    $sql="select * from ".$table;
    $result=mysql_query($sql)or die(mysql_error());
    $row1=mysql_num_rows($result);
    $row1++;

    if($id1){

    $sql="insert into bbs_re (id,userid,date1,title,content)values('$id','$userid','$date1','$title','$content')";
    mysql_query($sql)or die(mysql_error());
    $sql="select * from ".$table." where id='$id1'";
    $result=mysql_query($sql)or die(mysql_error());
    $lin=mysql_fetch_array($result);
    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_query($sql)or die(mysql_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">  
          <input type="text" name="title" size="40" value="<?echo $title ;?>" onMouseover="this.document.form1.title.focus();return true">
          <input type="hidden" name="table" value="<?echo $table ;?>">
          <input type="hidden" name="id1" value="<? echo $id1 ;?>">
          <br>
        </td>
      </tr>
      <tr>  
        <td width="26%" height="172">  
          <div align="center"><font size="2" color="#FF33FF">內容</font></div>
        </td>
        <td width="74%" height="172">  
          <textarea name="content" cols="40" rows="10" wrap="physical" value="<?echo $content ;?>" onMouseOver="this.document.form1.content.focus()"></textarea>
        </td>
      </tr>
      <tr>
        <td width="26%">
          <div align="center">
            <input type="reset" name="Submit2" value="重寫">
          </div>
        </td>
        <td width="74%">
          <div align="center">
            <input type="submit" name="ok" value="發表">
          </div>
        </td>
      </tr>
    </table>
    <p> </p>
  </form>
</div>
<div id="back" style="position:absolute; left:455px; top:30px; width:85px; height:3px; z-index:8">  
  <hr color="#ff9999" noshade>
</div>
<div id="goback" style="position:absolute; left:461px; top:23px; width:120px; height:16px; z-index:9">  
  <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>
<p> </p>
<p> </p>
</body>
</html>

php技術BBS(php &amp;amp; mysql)完整版(一),轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 亚洲在线国产日韩欧美 | 国产免费69成人精品视频 | 男人J进女人P | 亚洲第一成年网站视频 | 久久sese| 欧美.亚洲.日韩.天堂 | 国产不卡无码高清视频 | 國產日韓亞洲精品AV | 国产高清美女一级a毛片久久w | 亚洲狠狠97婷婷综合久久久久 | 阿娇和冠希13分钟在线观看 | 好爽胸大好深好多水 | 亚洲 欧美 另类 中文 在线 | 97资源站超碰在线视频 | 久久久影院亚洲精品 | 午夜福利在线观看6080 | 四虎4hu亚洲精品 | 久久久久久久久亚洲 | 免费啪视频观试看视频 | 乌克兰xxxxx| 欲香欲色天天影视大全 | 翁熄性放纵交换01 | 啊…嗯啊好深男男高h文总受 | 入室强伦女教师被学生 | 国产日韩欧美有码在线视频 | 日韩毛片在线视频 | 国产在线一卡二卡 | 日本国产精品无码一区免费看 | 最好看中文字幕国语 | 亚洲粉嫩美白在线 | 在线观看免费小视频 | 麻豆人妻换人妻X99 麻豆区蜜芽区 | 男女肉大捧进出全过程免费 | 国产伦精品一区二区三区精品 | 寂寞夜晚看免费视频 | 亚洲精品久久久久久偷窥 | 国产传媒18精品A片在线观看 | 蜜桃日本MV免费观看 | WWW污污污抽搐喷潮COM | 亚瑟天堂久久一区二区影院 | 伊人久久综在合线影院 |