Location: PHPKode > projects > Mdasx > mdasx/read.php
<?php

/*Vitaly Fedulov leoxs.com
  Downloads mdasx.sourceforge.net
  Version 0.1beta License GNU/GPL       */

require_once ("includes/hawhaw.inc");
require_once ("includes/config.php");

mysql_connect($dbhost, $dbuname, $dbpass);
@mysql_select_db("$dbname") or die ("MySQL ERROR");

$result = mysql_query("SELECT post_date,post_content,post_title FROM `".$prefix."_posts` WHERE ID='$m'");
$row = mysql_fetch_array ($result);

$date = $row['post_date'];
$content = $row['post_content'];
$title = $row['post_title'];
$contento = strip_tags($content);
$blogtitle = $title;
include_once ("includes/header.php");
$Text = new HAW_text($contento);
$Page->add_text($Text);
$Text = new HAW_text($date);
$Page->add_text($Text);
$Link = new HAW_link("Back to posts","posts.php","Back");
$Link->set_br(0);
$Image = new HAW_image("images/default/posts_back.wbmp","images/default/posts_back.gif","->","images/default/posts_back.bmp");
$Page->add_image($Image);
$Page->add_link($Link);

mysql_close();
include_once ("includes/footer.php");

?>
Return current item: Mdasx