Размер файла: 2.13Kb
<?php
Error_reporting(0);
header("Content-type: text/vnd.wap.xhtml+xml; charset=utf-8");
header("Cache-control: no-cache;");
header("Pragma: no-cache;");
$id = $_GET['id'];
require_once('config.ini');
$art = mysql_query("SELECT article FROM articles WHERE id=$id");
$article = mysql_result($art,0);
$artdate = mysql_query("SELECT date FROM articles WHERE id=$id");
$date = mysql_result($artdate,0);
$artname = mysql_query("SELECT name FROM articles WHERE id=$id");
$name = mysql_result($artname,0);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="application/vnd.wap.xhtml+xml; charset=utf-8"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
<title><? echo htmlspecialchars($name); ?>
</title>
</head>
<body>
<p align="left" style="background-color:green">
<span style="color:white"><small><? echo htmlspecialchars($name); echo ':'; ?></small>
</span>
</p>
<p align="left" style="background-color:white">
<? echo '<span style="color:green"><small>'.htmlspecialchars($article).'</small></span><br />';
echo '<span style="color:green"><small>---------------</small></span><br />';
echo '<span style="color:green"><small>Дата: '.$date.'</small></span>';
?>
</p>
<p align="center" style="background-color:green">
<span style="color:white"><small>All rights reserved 2008</small>
</span>
</p>
</body>
</html>