Мхм, ако беше толкова елементарно нямаше да искам помощ.
Това ми е кода:
<?php
session_start();
include 'config.php';
db_connect();
$rs1=run_q('SELECT * FROM posts WHERE post_id='.$post_id);
$post_id=(int)$_GET['post_id'];
$cat_id=(int)$_GET['id'];
if($cat_id>0 || $post_id>0)
{...