View file fnc/blog/blog_text.php

File size: 427B
<?php
include"../../sys/fnc.php";

$id=filtr($_GET['id']);



$res=$db->query("select * from `blog` where `id`='$id'");
$pole = $res->fetch_array();
echo'<p><h3>'.$pole[name].'</h3><br/><i>Добавлена '.$pole[data].'<br/>Добавил '.$pole[user].'</i><p>'.bbcod($pole[msg]).'<br>';


if($res->num_rows==0)
{
	echo'Статья не найдена';
}
$res->close();

?>

<?include"../sch2.php";?>