Iunhealthy
Registered
Ето го кода ми не знам къде греша :
Благодаря предварително
Код:
<?php
require 'dbconfig.php'
$post_id = (int)$_GET['post'];
if(!isset($post_id) || !is_nomeric($post_id) || $post_id <1)
{
header('Location: indexs.php');
exit();
}
$result = mysql_query("SELECT post_id, title, content FROM `news` WHERE post_id = '$post_id'");
$post = mysql_fetch_assoc($result);
?>