prepare('SELECT headline,public,article_id,content FROM article WHERE user_id = :user_id and category=:category'); $stmt->execute(array( ':user_id' => $_GET["user_id"],':category'=>$_GET["category"])); ?>
NOTE
Home
新文章
fetch(PDO::FETCH_ASSOC) ) { if(isset($_SESSION['user_id'])&&$_SESSION['user_id']==$_GET['user_id']){ echo ('
'); echo('
'); echo(htmlentities($row['headline'])); echo("
"); $article= substr($row['content'],0,300); echo(htmlentities($article)); echo("
"); } else{ if($row['public']=="public") { echo ('
'); echo('
'); echo(htmlentities($row['headline'])); echo("
"); $article= substr($row['content'],0,300); echo(htmlentities($article)); echo("
"); } } } ?>
M
O
R
E
...