File: fwphp/glomodul/z_examples/book_video/auction_wrox24h_30/content/articledisplay.php

Recommend this page to a friend!
  Classes of Slavko Srakocic  >  B12 PHP FW  >  fwphp/glomodul/z_examples/book_video/auction_wrox24h_30/content/articledisplay.php  >  Download  
File: fwphp/glomodul/z_examples/book_video/auction_wrox24h_30/content/articledisplay.php
Role: Example script
Content type: text/plain
Description: Example script
Class: B12 PHP FW
Manage database records with a PDO CRUD interface
Author: By
Last change:
Date: 2 months ago
Size: 434 bytes
 

Contents

Class file image Download
<?php
/**
 * articledisplay.php
 */

$id = (int) $_GET['id'];
// Get the existing information for an existing post
$post = Article::getArticle($id);

if (
$post) : ?>

<h1><?php echo htmlspecialchars($post->getTitle()); ?></h1>

<div>
<?php
 
echo strip_tags(
     
nl2br($post->getText())
    ,
"<p><br><h2><h3><h4><strong><em><ul><ol><li><a>"
 
);
?></div><?php

endif; ?>

<hr />
<span style="font-size:small;"><?=__FILE__?></span>

For more information send a message to info at phpclasses dot org.