OSOを模倣したフォーラム (4)

WBOY
リリース: 2016-06-13 12:38:11
オリジナル
761 人が閲覧しました

Reply.php(用来回复主题)
疑惑难问题

if (!$cook_user)
{echo "";}
else {include ("connect.inc.php");
$query = "select * from my_user where user='".$cook_user."'、password='".$cook_password."'";  
$res = mysql_query($query);  
if (!$res)
{echo "";}
include "connect.inc.php";
if ($content) {$content= str_replace ( "'","mysinglequotes",$content);  
$content=htmlspecialchars($content);
$content=nl2br($content);
$query = "INSERT INTO guestbook (name,type,content,icon,time_open,time_close,answer_count,answer_name,main_id) VALUES ('".$cook_user."',0,'".$content."' ,".$icon.",now(),now(),1,'".$cook_user."',".$theme_id.")";  
$res = mysql_query($query);
if ($res)
{$query = "ゲストブックの更新 set time_close=now(),answer_count=answer_count 1,answer_name='".$cook_user."' where id=".$theme_id;  
$res = mysql_query($query);  
if ($res)
{echo "";}}}}
?>























  • 本主题最后 5 个帖子(按発行帖時间倒序列)
  • 回复主题

    href="read.php?theme_id=">
    $query = "ゲストブックからテーマを選択します。ここで id=".$theme_id;
    $res = mysql_query($query);  
    $row = mysql_fetch_row($res);  
    エコー $row[0];
    ?>



    表情图标 <入力チェック済み name=icon type=radio value=1> align=ABSCENTER height=18
    src="mypic/icon1.gif"
    width=18> align=ABSCENTER height=18
    src="mypic/icon2.gif"
    width=18> align=ABSCENTER height=18
    src="mypic/icon3.gif"
    width=18> align=ABSCENTER height=18
    src="mypic/icon4.gif"
    width=18> align=ABSCENTER height=18
    src="mypic/icon5.gif"
    width=18> align=ABSCENTER height=18
    src="mypic/icon6.gif"
    width=18> align=ABSCENTER height=18
    src="mypic/icon7.gif"
    width=18>
    align=ABSCENTER height=18
    src="mypic/icon8.gif"
                width=18> align=ABSCENTER height=18
    src="mypic/icon9.gif"
    width=18> align=ABSCENTER height=18
    src="mypic/icon10.gif"
    width=18> align=ABSCENTER height=18
    src="mypic/icon11.gif"
    width=18> align=ABSCENTER height=18
    src="mypic/icon12.gif"
    width=18> align=ABSCENTER height=18
    src="mypic/icon13.gif"
    width=18> align=ABSCENTER height=18
    src="mypic/icon14.gif"
    width=18>

    追加料金コンテンツ

        

    width=100%>



              
    $query = "select * from guestbook where main_id=".$theme_id." or id=".$theme_id." order by time_open DESC 制限 5 ";
    $res = mysql_query($query);  
    function TdBackColor() {
    static $ColorStr;
    if ($ColorStr=="#ededed") {
    $ColorStr="#ededed";
    } else {
    $ColorStr="#ededed";
    }
    return($ColorStr);
    }
    for ($i=1;$i<=5;$i )
    {$row = @mysql_fetch_array($res);  
    if (!$row) ブレーク;  
    $ColorStr=TdBackColor();
    echo "";
    echo "";  
    $content= str_replace ( "mysinglequotes","'",$row['content']);  
    echo "";  
    }
    ?>      
    作品者 内容量
    ".$row['name']."".$content."



      

    【本文版权归作者与奥索网共同拥有,如果转下,请注明作者及出处】
    ソース:php.cn
    このウェブサイトの声明
    この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。
    最新の問題
    人気のおすすめ
    人気のチュートリアル
    詳細>
    最新のダウンロード
    詳細>
    ウェブエフェクト
    公式サイト
    サイト素材
    フロントエンドテンプレート
    私たちについて 免責事項 Sitemap
    PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!