'.$_SESSION['error']."
\n"; unset($_SESSION['error']); } if (isset($_GET['article_id']) ) { $stmt = $pdo->prepare('SELECT content, headline,user_id,public,category 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'); } } ?>