index.php deki kodlarım

<?php
session_start();
$durum=$_SESSION['durum'];
if ($durum=="") {
header("location: login.php");
}else{
?><!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="text/html; charset=iso-8859-9" />
<title>Ninova Hosting Kontrol Paneli v1.7</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.textbaslik {
 color: #9900FF;
 font-weight: bold;
}
.textmetin {color: #9900FF; font-weight: bold; font-size: 12px; }
-->
</style>
<!-- TinyMCE -->
<script type="text/javascript" src="jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
 tinyMCE.init({
  // General options
  mode : "textareas",
  theme : "advanced",
  plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template",
  // Theme options
  theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
  theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
  theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
  theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
  theme_advanced_toolbar_location : "top",
  theme_advanced_toolbar_align : "left",
  theme_advanced_statusbar_location : "bottom",
  theme_advanced_resizing : true,
  // Example content CSS (should be your site CSS)
  content_css : "css/content.css",
  // Drop lists for link/image/media/template dialogs
  template_external_list_url : "lists/template_list.js",
  external_link_list_url : "lists/link_list.js",
  external_image_list_url : "lists/image_list.js",
  media_external_list_url : "lists/media_list.js",
  // Replace values for the template plugin
  template_replace_values : {
   username : "Root Admin",
   staffid : "000001"
  }
 });
</script>
<!-- /TinyMCE -->
</head>
<body>
<table width="658" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="136">&nbsp;</td>
    <td width="480">&nbsp;</td>
    <td width="42">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3"><table id="Table_01" width="658" height="38" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td rowspan="3"><img src="images/menu_01.gif" width="19" height="38" alt="" /></td>
        <td colspan="2"><img src="images/menu_02.gif" width="256" height="12" alt="" /></td>
        <td colspan="3"><img src="images/menu_03.gif" width="368" height="12" alt="" /></td>
        <td rowspan="2"><img src="images/menu_04.gif" width="15" height="28" alt="" /></td>
      </tr>
      <tr>
        <td><a href="index.php"><img src="images/menu_05.gif" alt="" width="117" height="16" border="0" /></a></td>
        <td><a href="index.php?panel=duyurular"><img src="images/menu_06.gif" alt="" width="139" height="16" border="0" /></a></td>
        <td><a href="index.php?panel=urunler"><img src="images/menu_07.gif" alt="" width="115" height="16" border="0" /></a></td>
        <td><a href="index.php?panel=hatirlatmalar"><img src="images/menu_08.gif" alt="" width="184" height="16" border="0" /></a></td>
        <td><a href="logout.php"><img src="images/menu_09.gif" alt="" width="69" height="16" border="0" /></a></td>
      </tr>
      <tr>
        <td colspan="2"><img src="images/menu_10.gif" width="256" height="10" alt="" /></td>
        <td colspan="2"><img src="images/menu_11.gif" width="299" height="10" alt="" /></td>
        <td colspan="2"><img src="images/menu_12.gif" width="84" height="10" alt="" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td valign="top"><?php include("mysql.php"); ?><br />
      <table id="Table_01" width="136" height="229" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="images/sub_menu_01.gif" width="136" height="22" alt="" /></td>
      </tr>
      <tr>
        <td height="196" valign="top" background="images/sub_menu_02.gif">
  <?php
  
  if($_GET[panel]=='dekle')
  
  include("duyuru-sol.php");
  
  else
  
  if($_GET[panel]=='dkaydet')
    
  include("duyuru-sol.php"); 
  
  else
  
  if($_GET[panel]=='dedit')
    
  include("duyuru-sol.php"); 
  
  else 
  
  if($_GET[panel]=='duyurular')
  
  include("duyuru-sol.php");
  
  else
  
  if($_GET[panel]=='urunler')
  
  include("urun-sol.php");
  
  else
  
  if($_GET[panel]=='hatirlatmalar')
  
  include("hatir-sol.php");
  
  else
  
  include("inno-sol.php");
  
  ?>
</td>
      </tr>
      <tr>
        <td><img src="images/sub_menu_03.gif" width="136" height="11" alt="" /></td>
      </tr>
    </table></td>
    <td colspan="2" rowspan="2" valign="top" style="padding:10px;">
      <?php
  
  if($_GET[panel]=='aekle')
  
  include("aekle.php");
  
  else
  
  if($_GET[panel]=='akat')
  
  include("aekle.php");
  
  else
  
  if($_GET[panel]=='aedit')
  
  include("aedit.php");
  
  else
  
  if($_GET[panel]=='asil')
  
  include("asil.php");
  
  else
  
 if($_GET[panel]=='duyurular')
 
 include("duyuru.php");
 
 else
 
 if($_GET[panel]=='urunler')
 
 include("urun.php");
 else
 
 if($_GET[panel]=='dekle')
 
 include("dekle.php");
 
 else
 
 if($_GET[panel]=='dkaydet')
 
 include("dkayit.php");
 else
 
 if($_GET[panel]=='dedit')
 
 include("dedit.php");
 
 else
 
 if($_GET[panel]=='hatirlatmalar')
 
 include("notes.php");
 
 else
 
 include("inno.php");
 
 ?>
      </td>
  </tr>
  <tr>
    <td valign="top"><br />
      <table id="Table_01" width="135" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="images/doviz_01.gif" width="135" height="27" alt="" /></td>
      </tr>
      <tr>
        <td height="81" valign="top" background="images/doviz_02.gif">&nbsp;</td>
      </tr>
      <tr>
        <td><img src="images/doviz_03.gif" width="135" height="14" alt="" /></td>
      </tr>
    </table><br />
</td>
  </tr>
  <tr>
    <td colspan="3"><table id="Table_01" width="658" height="38" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td rowspan="3"><img src="images/footer_01.gif" width="14" height="38" alt="" /></td>
        <td rowspan="3"><img src="images/footer_02.gif" width="8" height="38" alt="" /></td>
        <td rowspan="3"><img src="images/footer_03.gif" width="55" height="38" alt="" /></td>
        <td><img src="images/footer_04.gif" width="479" height="14" alt="" /></td>
        <td rowspan="3"><img src="images/footer_05.gif" width="89" height="38" alt="" /></td>
        <td rowspan="3"><img src="images/footer_06.gif" width="13" height="38" alt="" /></td>
      </tr>
      <tr>
        <td><a href="http://www.ninovahosting.com" target="_blank"><img src="images/footer_07.gif" alt="" width="479" height="10" border="0" /></a></td>
      </tr>
      <tr>
        <td><img src="images/footer_08.gif" width="479" height="14" alt="" /></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
<?php
}
?>
?panel=aedit ile gelen sayfam yani aedit.php sayfam

 <p>&nbsp;</p>
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#B3DBE5" bgcolor="#FFFFFF">
  <tr>
    <td width="15%"><p class="textbaslik">Admin ID</p></td>
    <td width="35%"><p class="textbaslik">Kullanıcı Adı </p></td>
    <td width="50%"><p class="textbaslik">Sifresi</p></td>
  </tr>
</table>
<?
  $query = "select * from admin order by `id` ASC";
  $result = mysql_query($query, $veriyolu);
  $numrows = mysql_num_rows($result);
  for($i=0; $i<$numrows; $i++)
    {
 $row = mysql_fetch_array($result);
  ?>
 <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#B3DBE5" bgcolor="#FFFFFF">
  <tr><form method="post" action="index.php?panel=aedit&id=<?php echo($row[0]) ?>"><input type="hidden" value="<?php echo($row[0]) ?>" name="id"  />
    <td width="15%"><p class="textmetin"><?php echo($row[0]) ?></p></td>
    <td width="35%"><p class="textmetin"><?php echo($row[1]) ?></p></td>
    <td width="48%"><span class="textmetin"><?php echo($row[2]) ?></span></td>
    <td width="2%"><input type="image" name="adminduzenle" src="images/edit.gif" /></td>
  </form></tr>  <?
  }
  ?>
</table>
değişikliği yapması için düzenledigim aedit2.php sayfam( &'den sonra gelmesini istedigim sayfam)

<?
@$admin_id = $_GET['admin_id'];
$sorgu = mysql_query("select * from admin where id = '".$admin_id."'");
$bilgi = mysql_fetch_array($sorgu);
?>
<?php
if($_GET["adminduzelt"])
    {
    mysql_query("
       update admin set
          uname = '".mysql_real_escape_string(stripslashes($_GET["unname"]))."',
          upass = '".mysql_real_escape_string(stripslashes($_GET["uppass"]))."',
       where
          id ='".$_GET["admin_id"]."'"
       );
    }
?>
 <p>&nbsp;</p>
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#B3DBE5" bgcolor="#FFFFFF">
  <tr>
    <td width="15%"><p class="textbaslik">Admin ID</p></td>
    <td width="35%"><p class="textbaslik">Kullanıcı Adı </p></td>
    <td width="50%"><p class="textbaslik">Sifresi</p></td>
  </tr>
</table>
<?
  $query = "select * from admin order by `id` ASC";
  $result = mysql_query($query, $veriyolu);
  $numrows = mysql_num_rows($result);
  for($i=0; $i<$numrows; $i++)
    {
 $row = mysql_fetch_array($result);
  ?>
 <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#B3DBE5" bgcolor="#FFFFFF">
  <tr><form method="get"><input type="hidden" name="admin_id" value="<?php echo($row[0]) ?>" />
    <td width="15%"><p class="textmetin"><?php echo($row[0]) ?></p></td>
    <td width="35%"><input name="unname" type="text" value="<?php echo($row[1]) ?>" /></td>
    <td width="48%"><input type="uppass" value="<?php echo($row[2]) ?>" /></td>
    <td width="2%"><input name="submit" type="submit" value="Düzenle" /></td>
  </form></tr>  <?
  }
  ?>
</table>

şimdi eksigim nerde hatam nerde bi türlü cözemedim