$stmt = $db->prepare('SELECT * FROM blog_posts_bi WHERE postID = :postID'); $stmt->bindParam(':postID', $idFromGet); $stmt->execute(); $stmt->setFetchMode(PDO::FETCH_CLASS, 'BlogEntry'); $row = $stmt->fetch(); } catch (Exception $e) { echo $e->getMessage(); } if (empty($row)) { $row = new BlogEntry(); } print <<<END \t<form method='post' action="{$hereFunc(htmlspecialchars($_SERVER['PHP_SELF']))}" > \t\t<input type='hidden' name='postID' value="{$row->getPostId()}"/> \t \t\t<h2 id="frTitle">FRANÇAIS</h2> \t\t<p> \t\t\t<label>Titre</label><br /> \t\t\t<input type='text' name='frTitle' value="{$row->getTitle(FRENCH)}"> \t\t</p> \t\t<p> \t\t\t<label>Déscription</label><br /> \t\t\t<input type='text' name='frDesc' value="{$row->getDescription(FRENCH)}" /> \t\t</p> \t\t<p> \t\t\t<label>Contenu</label><br /> \t\t\t<textarea name='frContents' class="frTextArea" cols='60' rows='10'>