首頁 > 後端開發 > php教程 > 社區(php&&mysql)五_PHP教程

社區(php&&mysql)五_PHP教程

WBOY
發布: 2016-07-21 16:06:01
原創
1359 人瀏覽過

function post2() {
    全域 $sid,$aid,$PHP_SELF;
    全域$banner,$body,$poster,$email,$type,$CHAR_GB;

     
    if(strlen($banner)==0 || strlen($body)==0 || strlen($poster)==0 || strlen($email)==0) {
        echo "
          
         」;
    }
    echo "

";
    echo "";

      echo "」;
      回顯「」;  
    回顯「
";

              echo "";     
              echo "穓碝ゅ徹:";
              echo "";
              echo "";

      回顯「
」;  

     
    $skey="%$key%";
    $DROOT=getenv('DOCUMENT_ROOT');
    include("sql.php3");
    $db=mysql_connect($sql['host'], $sql['user'] , $sql['passwd']);  
    if($aid) $qsql="SELECT * from bbs_subj where help='$aid' and (橫幅如 '$skey' 或海報如 '$skey' 或正文如 '$skey') 按 wdate DESC 排序”;
    else $qsql="SELECT * from bbs_subj where  (橫幅如“$skey”或海報如“$skey”或正文如“$skey”)按wdate DESC  qsql;
    $rs=mysql_db_query($sql['db'],$qsql);

    echo "";
      echo "
";
      echo "";
        echo "";
            echo "";
            echo "";
            echo "萊第>";
            echo "第>";
            echo "";
        回顯「」;
        while($row=mysql_fetch_array($rs)) {
            $id=$row['id'];
            $paid=$row['aid'];
            $banner=$row['banner'];
            $poster=$row['poster'];
            $views=$row['views'];
            $wdate=sdatetime($row['wdate']);
            $docs=reAnum($id);
            echo "";
                則以回復「";
                則以回復「」;
                echo "」;
                echo "」;
                echo "」;
            則以回顯「」;

        }
        search_docs($aid,$skey);
      echo "
夾肈只爸ら循環
」;
                    echo "";
                        echo $banner;
                    迴聲「
」;
                echo "
」;
                    echo $poster;
                則以回復「
";
                    echo $docs;
                則以回復「
";
                    echo $views;
                則以回復「
";
                    echo 且 $wdate;
                則以回復「
";
    迴聲「
」;       

     

     
}
//================================= =============================================

如果($ proc=="post2") {
    setcookie("c_poster",$poster,time() 31536000);
    setcookie("c_email",$email,time() 31536000);
}

//if($proc!="do_sel" &&  $proc!="post2" && $proc!="colloff" && $proc!="collon") include("frame_top.php3") ;
switch($proc) {
        案例搜尋:
                  案例電子郵件清單:
             mail_list();
        案例mail_friend:
             mail_friend();
                    post2();
             休息;
      🎜>             休息;
        案例冒號:
             cook_coolon();              view();
                      area();
            休息;
    }
//if($proc!="do_sel" && $proc!="post2" && $proc!="colloff" &proc.=" frame_bottom.php3" );     
? >

以上前五篇為一頁 



http://www.bkjia.com/PHPjc/315600.html

www.bkjia.com

true

http: //www.bkjia.com/PHPjc/315600.html
TechArticle

function post2() { global $sid,$aid,$PHP_SELF;$banner,$body,$poster,$body,$poster ,$email,$type,$CHAR_GB; if(strlen($banner)==0 || strlen($body)==0 || strlen($poster)==0 || strlen($email)=.. .
相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
最新問題
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板