<?php
$topic = mysql_fetch_assoc(mysql_query("SELECT * FROM `forum_topic` WHERE `id`  = '$get_id'"));
$topic_razdel = mysql_fetch_assoc(mysql_query("SELECT * FROM `forum_razdel` WHERE `id`  = '".num($topic['id_razdel'])."'"));
$topic_parent_razdel = mysql_fetch_assoc(mysql_query("SELECT * FROM `forum_razdel` WHERE `id`  = '".num($topic_razdel['attached_to'])."' And `main_forum` = '1'"));
?>