• 08-07-2008, 10:48:03
    #1
    Üyeliği durduruldu
    Arkadaşlar bir scriptime tasarım yaptırdım... tasarımı 1 haftadır entegre edemedim bazı hatalar oldu

    neyse, şurada takıldım

    <p align="left"><span class="style3">KATEGORİLER</span></td> 
            </tr> 
          </table>       
    <?  
    $sorgu=mysql_query("select * from z_inndir_ktgr order by id ");  
    while ($satir=mysql_fetch_array($sorgu)) { 
    echo '      <table width="271" border="0" bgcolor="#FBFFEC" class="sidebartop"> 
            <tr> 
              <td width="11">&nbsp;</td> 
              <td width="126" align="left" valign="middle"><a href="liste.php?ktgr1='.$satir[ad].'"><strong>'.$satir[ad].'</strong></a></td> 
              <td width="120" align="left" valign="middle"> 
                <select name="select13" class="style1" style="width:200px">
                <option value="">Alt Kategori</option>
                ';
    $sorgu1=mysql_query("select distinct ktgr2 from z_inndir WHERE (ktgr1='$satir[ad]') and (ktgr2!='') order by ktgr2 ");
    while ($satir1=mysql_fetch_array($sorgu1)) { 
    echo '<option value="liste1.php?ktgr1='.$satir[ad].'&ktgr2='.$satir1[ktgr2].'">'.$satir1[ktgr2].'</option>
                            ';
    } 
    echo '            </select> 
              </td> 
            </tr> 
          </table> ';
    
    }
    ?></p>
    bu yukardaki kod inndir.com'daki gibi kategorileri sıralıyor ama kategoriden herhangi bir kategori seçtiğimde oraya yönlenmiyor nedense.

    eski tasarımda yönleniyor.. eski tasarımda ise kodlar böyle..

    <td height="22" bgcolor="#37BCE6" style="padding-left:5px; border-bottom:2px solid #00c4cf"><img src="resim/b1.gif" width="12" height="12" align="absmiddle"> <font color="#ffffff"><b>Kategoriler</b></font></td>
                      </tr>
                      <tr>
                        <td height="259" valign="top" bgcolor="ffffff" style="padding:3px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          
    <? 
                         $sorgu=mysql_query("select * from z_inndir_ktgr order by id "); 
                        while ($satir=mysql_fetch_array($sorgu)) { ?>
                          <tr>
                            <td width="1%" height="19" style="padding-left:3px;"><img src="resim/ok9.gif" width="12" height="12"></td>
                            <td width="69%" nowrap="nowrap" style="padding-left:6px;"><b><a href="liste.php?ktgr1=<?=$satir[ad]?>"><font color="#ff6600"><?=$satir[ad]?></font></a></b></td>
                            <td width="30%">
                            <select name="select" class="edit2" style="width:150px;" onChange="MM_jumpMenu('parent',this,0)">
                            <option value="">Alt Kategorileri</option>
                        <? $sorgu1=mysql_query("select distinct ktgr2 from z_inndir WHERE (ktgr1='$satir[ad]') and (ktgr2!='') order by ktgr2 "); 
                        while ($satir1=mysql_fetch_array($sorgu1)) { ?>
                            <option value="liste1.php?ktgr1=<?=$satir[ad]?>&ktgr2=<?=$satir1[ktgr2]?>"><?=$satir1[ktgr2]?></option>
                            <? } ?>
                            </select>
                            </td>
                          </tr>
    yardım edermisiniz
  • 08-07-2008, 11:22:33
    #2
    Üyeliği durduruldu
    Burayı
    <select name="select13" class="style1" style="width:200px">
    Bununla değiştir
    <select name="select13" class="style1" style="width:200px" onChange="MM_jumpMenu('parent',this,0)">
  • 08-07-2008, 11:32:03
    #3
    Üyeliği durduruldu
    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in C:\AppServ\www\dosya\index.php on line 197

    böle bi hata verdi
  • 08-07-2008, 11:57:54
    #4
    Üyeliği durduruldu
    index.php 197. satırda php yazım hatası var. Satırı yazabilirsen düzeltiriz.
  • 08-07-2008, 11:59:31
    #5
    Üyeliği durduruldu
    Alonso adlı üyeden alıntı: mesajı görüntüle
    index.php 197. satırda php yazım hatası var. Satırı yazabilirsen düzeltiriz.
    bu satır var

    <select name="select13" class="style1" style="width:200px" onChange="MM_jumpMenu('parent',this,0)">
  • 08-07-2008, 12:12:23
    #6
    Üyeliği durduruldu
    Komple sayfayı yazabilir misin?
  • 08-07-2008, 12:44:49
    #7
    Üyeliği durduruldu
    Alonso adlı üyeden alıntı: mesajı görüntüle
    Komple sayfayı yazabilir misin?
    <?
        // Sayfa Ayarları Yapılıyor...
        $sayfa='index.php';
         include 'ayar.php';
        
        $kk='xxxxxxxx';
    ?>
    <html>
    <head>
    <title><?=$kk?></title>
        <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-9">
        <META NAME="keywords" CONTENT="<?=$kk?> xxxxxxxxxxxxxxxxx">
        <META NAME="description" CONTENT="<?=$kk?>">
    <meta name="verify-v1" content="6u6thTwkHPdqMXOlMjIUywZiShMI/NJOd1C9g4GT4YQ=" />
    <?=$meta?>
    <link href="style.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    <!--
    body {
        background-color: #94E4E8;
    }
    body,td,th {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 11px;
    }
    
    .listmenuerol {
    border-color:#FFCC00;
    font-size: 14px;
        border:1px;
        height:19px;
        border-style:double;
        border-color:#FFFFFF;
        
        }
    
    
    
    
    
    
    
    a {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 13px;
        color: #33CCFF;
        font-weight: bold;
    }
    a:link {
        text-decoration: none;
        color: #00B1EC;
    }
    a:visited {
        text-decoration: none;
        color: #00B1EC;
    }
    a:hover {
        text-decoration: underline;
        color: #666666;
    }
    a:active {
        text-decoration: none;
        color: #00B1EC;
    }
    
    .sidebartop a { 
     color:#333333;
    
        font-size: 11px;
    }
    
    .sidebartop a:hover { 
     color:#999999;
    
    
    }
    .sidebartop a:visited { 
     color: #333333;
    }
    
    
    .menu a { 
     color:#666666;
        text-decoration: none;
    
        font-size: 12px;
    }
    
    .menu a:hover { 
     color:#00FF00;
     background-color:#DFF8FF;
        text-decoration: none;
    
    
    }
    .menu a:visited { 
     color: #666666;
         text-decoration: none;
    
    }
    
    
    
    .style1 {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-size: 11px;
        
        color:#999999;
        border:1px ;
        border-style:dotted;
        height:18px;
        border-color:#C7F1F3;
        background-color:#FFFFFF;
        position:static;
        padding-left:3px;
        
    }
    .style2 {font-family: Geneva, Arial, Helvetica, sans-serif}
    .style3 {
        color: #333333;
        font-weight: bold;
        font-family: Verdana, Arial, Helvetica, sans-serif;
    }
    .style5 {color: #FFFFFF; font-weight: bold; font-family: Verdana, Arial, Helvetica, sans-serif; }
    .style6 {
        font-size: 9px;
        font-family: Verdana, Arial, Helvetica, sans-serif;
        color: #666666;
    }
    .style7 {color: #666666}
    .style8 {font-size: 12px}
    .style9 {color: #FF6699}
    .style10 {color: #33CCFF}
    .style11 {color: #E6FF80}
    .style12 {color: #D7FF37}
    
    
    
    -->
    <script language="JavaScript" type="text/JavaScript" src="javascript.js"></script>
    </style></head>
    
    <body marginheight="0" leftmargin="0" topmargin="0" >
    <table width="750" height="95" border="0" align="center">
      <tr>
        <td><a href="http://www.yuklesem.com"><img src="img/logo.png" width="234" height="79" border="0"></a></td>
      </tr>
    </table>
    <table width="750" height="24" border="0" align="center" background="img/navbar.png" class="sidebartop">
      <tr align="center">
        <td width="83"><a href="index.php">Anasayfa</a></td>
        <td width="114"><a href="detayli-arama.php">Detaylı Arama </a></td>
        <td width="112"><a href="yeni.php">Son Eklenenler </a></td>
        <td width="73"><a href="haber.php">Haberler</a></td>
        <td width="101"><a href="webmaster.php">Siteniz için </a></td>
        <td width="80"><a href="reklam.php">Reklam</a></td>
        <td width="74"><a href="sitemap.php">Sitemap</a></td>
        <td width="79"><a href="arananlar.php">Arananlar</a></td>
      </tr>
    </table>
    <table width="750" height="95" border="0" align="center" bgcolor="#FFFFFF">
      <tr>
        <td width="278" align="center" valign="top"><table width="271" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFCC00">
          <tr>
            <td width="23"><span class="style2"><img src="img/orangestar.png" width="22" height="18"> </span></td>
            <td width="228"><span class="style3">PROGRAM ARAMA </span></td>
          </tr>
        </table>            
          <table width="271" border="0" bordercolor="#FFCC00" bgcolor="#FFF8D9">
            <tr>
              <td colspan="3"><form name="form1" method="post" action="ara.php">
                <table width="264" border="0">
                  <tr align="center">
                    <td width="196"><input name="textfield" type="text" class="style1" value="programın adı" size="30"></td>
                    <td width="58"><input name="imageField" type="image" src="img/arabut.png" width="36" height="22" border="0"></td>
                  </tr>
                </table>
              </form></td>
            </tr>
          </table>
          <hr width="270" size="1" class="style12">
          <table width="271" border="0" cellpadding="0" cellspacing="0" bgcolor="#E6FF80">
            <tr>
              <td width="23"><span class="style2"><img src="img/sarisiyahstar.png" width="22" height="18"> </span></td>
    <td width="228">
    <p align="left"><span class="style3">KATEGORİLER</span></td> 
            </tr> 
          </table>       
    <?  
    $sorgu=mysql_query("select * from z_inndir_ktgr order by id ");  
    while ($satir=mysql_fetch_array($sorgu)) { 
    echo '      <table width="271" border="0" bgcolor="#FBFFEC" class="sidebartop"> 
            <tr> 
              <td width="11">&nbsp;</td> 
              <td width="126" align="left" valign="middle"><a href="liste.php?ktgr1='.$satir[ad].'"><strong>'.$satir[ad].'</strong></a></td> 
              <td width="120" align="left" valign="middle"> 
              <select name="select13" class="style1" style="width:200px" onChange="MM_jumpMenu(\'parent\',this,0)"> 
                <option value="">Alt Kategori</option>
                ';
    $sorgu1=mysql_query("select distinct ktgr2 from z_inndir WHERE (ktgr1='$satir[ad]') and (ktgr2!='') order by ktgr2 ");
    while ($satir1=mysql_fetch_array($sorgu1)) { 
    echo '<option value="liste1.php?ktgr1='.$satir[ad].'&ktgr2='.$satir1[ktgr2].'">'.$satir1[ktgr2].'</option>
                            ';
    } 
    echo '            </select> 
              </td> 
            </tr> 
          </table> ';
    
    }
    ?></p>      <hr width="270" size="1" class="style9"> 
          <table width="271" border="0" cellpadding="0" cellspacing="1" bgcolor="#FF6699">
          <tr>
            <td width="23"><span class="style2"><img src="img/pembestar.png" width="22" height="18"> </span></td>
            <td width="228"><span class="style5">EN ÇOK YÜKLENENLER </span></td>
          </tr>
        </table>
          <table width="271" border="0" bgcolor="#FFDDE8" class="sidebartop">
            <tr>
            <? $yeni1=mysql_query("select * from z_inndir order by hit desc limit 0,5");
    while ($yeni=mysql_fetch_array($yeni1)) { ?>
              <td width="17"><img src="img/kosegen2.png" width="16" height="16"></td>
              <td width="174" align="left" valign="top"> <a href="<?=dosya($yeni[ad]).'_'.$yeni[id].'.htm'?>"><?=$yeni[ad]?> </a> </td>
              <td width="66" align="left" valign="top"><span class="style6"><?=number_format($yeni[hit],0,",",".")?></span></td>
            </tr>
          </table>
          <table width="271" border="0" bgcolor="#FFDDE8" class="sidebartop">
            <tr>
            <? }?>
              <td width="97" align="right">&nbsp;</td>
              <td width="164" align="right"><a href="hit.php">Tümünü göster</a><a href="#">&raquo;</a></td>
            </tr>
          </table>
          <hr width="270" size="1" class="style10">
          <table width="271" border="0" cellpadding="0" cellspacing="1" bgcolor="#33CCFF">
          <tr>
            <td width="23"><span class="style2"><img src="img/mavistar.png" width="22" height="18"> </span></td>
            <td width="228"><span class="style5">HABERLER</span></td>
          </tr>
        </table>
        <table width="271" border="0" bgcolor="#DFF8FF" class="sidebartop">
          <tr>
                                <? $yeni1=mysql_query("select * from z_inndir_haber  WHERE (durum='a') order by id desc limit 0,05"); 
                        while ($yeni=mysql_fetch_array($yeni1)) { ?>
            <td width="17"><img src="img/kosegen.png" width="16" height="16"></td>
            <td width="216" align="left" valign="top"> <a href="<?=dosya($yeni[ad]).'_'.$yeni[id].'.html'?>"><?=$yeni[ad]?> </a> </td>
            <td width="24" align="left" valign="top" class="style6"><a href="<?=dosya($yeni[ad]).'_'.$yeni[id].'.html'?>" class="style7">oku</a></td>
          </tr>
    <? }?>
          <tr>
            <td>&nbsp;</td>
            <td colspan="2" align="right" valign="top"><a href="#">Tüm haberler &raquo;</a></td>
            </tr>
        </table>    </td>
        <td align="center" valign="top"><table width="460" height="22" border="0" align="center" bgcolor="#33CCFF">
          <tr>
            <td width="38" align="center" valign="top"><img src="img/orengeok.png" width="22" height="18"></td>
            <td width="412"><span class="style5">EN SON EKLENEN PROGRAMLAR </span></td>
          </tr>
          </table>
          <table width="460" border="0">
            <tr align="left" valign="middle">
              <td valign="top">                     <table width="100%" border="0" cellspacing="1" cellpadding="1">
                        <? $yeni1=mysql_query("select * from z_inndir  WHERE (durum='a') order by tarihx desc limit 0,15"); 
                        while ($yeni=mysql_fetch_array($yeni1)) { ?>
                          <tr>
                            <td width="1%" style="padding-left:3px;"><img src="img/noktacik.png" width="12" height="12"></td>
                            <td width="99%"><b><a href="<?=dosya($yeni[ad]).'_'.$yeni[id].'.htm'?>"><?=substr($yeni[ad],0,35)?></font></a></b></td>
                          </tr>
                          <tr>
                            <td>&nbsp;</td>
                            <td background="resim/cizgi1.gif" style="background-position:bottom; background-repeat:repeat-x">
                            <em>Üreticiden : </em><?=substr(trim(strip_tags($yeni[mesaj])),9,75)?></td>
                          </tr>
                          <tr>
                            <td colspan="2" height="7"></td>
                            </tr>
                          <? }?>
                        </table></td>
                      </tr>
            </tr>
          </table>     
          <table width="460" border="0" class="sidebartop">
            <tr>
              <td width="148">&nbsp;</td>
              <td width="295" align="right"><a href="yeni.php">en son eklenenleri göster </a></td>
              <td width="10">&nbsp;</td>
            </tr>
          </table></td>
      </tr>
    </table>
    <table width="750" height="0" border="0" align="center" bgcolor="#F9FFDF" class="sidebartop">
      <tr align="center">
        <td class="style7">&copy; 2008 yuklesem.com | tüm hakları saklıdır.</td>
      </tr>
    <div style="margin-left:-1000px;">
    <td><? include 'alt.php'; ?></td>
    </table>
    </body>
    </html>
  • 08-07-2008, 13:14:46
    #8
    Üyeliği durduruldu
    Aşağıdaki kodları
    <?  
    $sorgu=mysql_query("select * from z_inndir_ktgr order by id ");  
    while ($satir=mysql_fetch_array($sorgu)) { 
    echo '      <table width="271" border="0" bgcolor="#FBFFEC" class="sidebartop"> 
            <tr> 
              <td width="11">&nbsp;</td> 
              <td width="126" align="left" valign="middle"><a href="liste.php?ktgr1='.$satir[ad].'"><strong>'.$satir[ad].'</strong></a></td> 
              <td width="120" align="left" valign="middle"> 
              <select name="select13" class="style1" style="width:200px" onChange="MM_jumpMenu(\'parent\',this,0)"> 
                <option value="">Alt Kategori</option>
                ';
    $sorgu1=mysql_query("select distinct ktgr2 from z_inndir WHERE (ktgr1='$satir[ad]') and (ktgr2!='') order by ktgr2 ");
    while ($satir1=mysql_fetch_array($sorgu1)) { 
    echo '<option value="liste1.php?ktgr1='.$satir[ad].'&ktgr2='.$satir1[ktgr2].'">'.$satir1[ktgr2].'</option>
                            ';
    } 
    echo '            </select> 
              </td> 
            </tr> 
          </table> ';
    
    }
    ?>
    Bunlarla değiştir
    <? $sorgu=mysql_query("select * from z_inndir_ktgr order by id ");  
    while ($satir=mysql_fetch_array($sorgu)) { ?>
    	<table width="271" border="0" bgcolor="#FBFFEC" class="sidebartop"> 
    		<tr> 
    			<td width="11">&nbsp;</td> 
    			<td width="126" align="left" valign="middle"><a href="liste.php?ktgr1='.$satir[ad].'"><strong><?=$satir[ad]?></strong></a></td> 
    			<td width="120" align="left" valign="middle"> 
    			<select name="select13" class="style1" style="width:200px" onChange="MM_jumpMenu('parent',this,0)"> 
    				<option value="">Alt Kategori</option>
    <? $sorgu1=mysql_query("select distinct ktgr2 from z_inndir WHERE (ktgr1='$satir[ad]') and (ktgr2!='') order by ktgr2 ");
    while ($satir1=mysql_fetch_array($sorgu1)) { ?>
    				<option value="liste1.php?ktgr1='.$satir[ad].'&ktgr2='.$satir1[ktgr2].'"><?=$satir1[ktgr2]?></option>          
    <? } ?> 
    			</select> 
              </td> 
            </tr> 
          </table>
    <? } ?>
    Bu şekilde dene bakalım bir hata olmaması lazım
  • 08-07-2008, 16:09:32
    #9
    Üyeliği durduruldu
    olmadı :s