السلام عليكم ورحمة الله وبركاتة




انا عملت سكربت لية اقسام وتحت الاقسام عنوان الموضوع وداخل الموضوع في الرد علي الموضوع

جربة اني عدل فية عشان يظهر الموضوع ما فيش فيده فارجو المساعد فية

يعني بالمختصر القسم تحتة موضوع بدخل للموضوع ما بيظهرش الموضوع في صفحة اظهار الموضوع
ودية الصفحة متاعة الموضوع
وايضا اريد اعرف اذي اخلي الردود متاعة الموضوع تظهر لكل موضوع خاص بية وشكرااااااااا
كود PHP:

<style type="text/css">
<!--
.style1 {color: #FFFF00}
-->
</style>
<?php
include("includes/glabol.php");
$catid=$_GET['art_id'];
$topic_id=$_GET['topic_id'];
$sqtop=mysql_query("select*from topics where topic_id='$topic_id' and catid='$catid'");
$top=mysql_fetch_array($sqtop);
?>
<table width="100%" border="1" bordercolor="#666666" bgcolor="#999999">
  <tr>
    <td width="62%" align="center"><span class="style1"><? echo $top['title'];?></span></td>
    <td width="38%" align="center" bgcolor="#666666"><span class="style1 style1">عنوان الموضوع</span></td>
  </tr>
  <tr>
    <td align="center"><span class="style1"><? echo $top['topic'];?></span></td>
    <td align="center" bgcolor="#666666"><span class="style1 style1">الموضوع</span></td>
  </tr>
  <tr>
    <td align="center"><span class="style1"><? echo $top['datetime'];?></span></td>
    <td align="center" bgcolor="#666666"><span class="style1">الوقت</span></td>
  </tr>
</table>
<p>&nbsp;</p>
<?php
$sqre
=mysql_query("select*from replys where topicid='$top[topic_id]'");
$i=0;
while(
$i<$re=mysql_fetch_array($sqre)){
?>
<table width="100%" border="1" bordercolor="#666666" bgcolor="#999999">
  <tr>
    <td width="69%" align="center"><span class="style1"><? echo $re['title_reply'];?></span></td>
    <td width="31%" align="center" bgcolor="#666666"><span class="style1">عنوان الرد</span></td>
  </tr>
  <tr>
    <td align="center"><span class="style1"><? echo $re['topic_reply'];?></span></td>
    <td align="center" bgcolor="#666666"><span class="style1">الرد</span></td>
  </tr>
  <tr>
    <td align="center"><span class="style1"><? echo $re['datetime_reply'];?></span></td>
    <td align="center" bgcolor="#666666"><span class="style1">الوقت</span></td>
  </tr>
</table>
<?
$i
=$i+1;
}
$topic_id=$_GET['topic_id'];
?>
<p>&nbsp;</p>
<p>&nbsp;</p>
<form name="form1" method="post" action="reply.php">
  <table width="70%" border="1" align="center" bordercolor="#666666" bgcolor="#999999">
    <tr bgcolor="#666666">
      <td width="70%" align="right"><span class="style1">
        <label>
        <input type="text" name="T1" id="T1" dir="rtl">
        </label>
      </span></td>
      <td width="30%"><span class="style1">عنوان الرد</span></td>
    </tr>
    <tr>
      <td align="right"><label>
        <textarea name="T2" id="T2" cols="45" rows="5" dir="rtl"></textarea>
      </label></td>
      <td>الرد</td>
    </tr>
  </table>
  <table width="70%" border="1" align="center" bordercolor="#999999" bgcolor="#666666">
    <tr>
      <td align="center"><label>
        <input type="submit" name="button" id="button" value="الرد">
        <input type="hidden" name="topic_id" id="<? echo $topic_id ;?>">
      </label></td>
    </tr>
  </table>
</form>