prepare('SELECT content, headline,user_id FROM article WHERE article_id = :article_id'); $stmt->execute(array( ':article_id' => $_GET["article_id"])); $row = $stmt->fetch(PDO::FETCH_ASSOC); if ( $row == false ) { header('Location: index.php'); } $stmt2 = $pdo->prepare('SELECT name FROM users WHERE user_id=:user_id'); $stmt2->execute(array( ':user_id' => $row["user_id"])); $row2 = $stmt2->fetch(PDO::FETCH_ASSOC); if (!isset($_SESSION['user_id'] )) { echo(" " ); } ?>
$(document).ready(function(){ $('.hidee').hide(); }); " ); } ?>
>

    prepare('SELECT * FROM commentsss WHERE article_id = :article_id ORDER BY comment_id' ); $stmt0->execute(array( ':article_id' => $_GET["article_id"])); $buf=array(); while ( $row0 = $stmt0->fetch(PDO::FETCH_ASSOC) ) { if($row0['comment_id']==$num_comment+1) { if($row0['feedback_id']!=NULL) { $buf[]=$row0; } else{ $main_comment=$row0; } } else{ $num_comment++; echo('
    '); echo('
  • '); echo(htmlentities($main_comment['content'])); echo("


    "); if($buf!=null){ echo("
    more"); echo("
    "); echo('
    '); $num=0; foreach($buf as $feedback) { echo('
    '); echo('
    '); echo(htmlentities($feedback['content'])); echo("


    "); $num++; } echo('
    '); echo(' '); echo(''); echo(''); echo(''); echo(' '); echo("
  • "); } else{ echo("
    评论"); echo("
    "); echo("
    "); echo('
    '); echo('
    '); echo(' '); echo(''); echo(''); echo(''); echo(' '); echo("
"); } $buf=array(); if($row0['feedback_id']!=NULL) { $buf[]=$row0; } else{ $main_comment=$row0; } } } if(isset($main_comment)) { $num_comment++; echo('
'); echo('
  • '); echo(htmlentities($main_comment['content'])); echo("


    "); if($buf!=null){ echo("
    more"); echo("
    "); echo('
    '); $num=0; foreach($buf as $feedback) { echo('
    '); echo('
    '); echo(htmlentities($feedback['content'])); echo("


    "); $num++; } echo('
    '); echo(' '); echo(''); echo(''); echo(''); echo(' '); echo("
  • "); } else{ echo("
    评论"); echo("
    "); echo("
    "); echo('
    '); echo('
    '); echo(' '); echo(''); echo(''); echo(''); echo(' '); echo("
    "); } } $num_comment++; echo(" "); ?>