• 28-05-2008, 18:59:53
    #1
  • 28-05-2008, 19:02:14
    #2
    yana nerken?1. çıktının yanına mı ? eğer öyleyse 1. kodun sonundaki <br>'yi kaldır
  • 28-05-2008, 19:06:27
    #3
  • 28-05-2008, 19:35:29
    #4
    Yan taraf derken tam anlaşılmadı.
    Orda 2 tane div mi var ?
  • 28-05-2008, 19:39:19
    #5
    2 bölümden oluşan bir tablo içine 2kodu ayrı ayrı koymayı denesen?
  • 28-05-2008, 19:44:00
    #6
    Anladığım kadarı ile şöyle yapmalısın.
    Bi tane Ana div oluştur.Sonra bu ana divin içine 2 tane div oluştur.Birini float:left diğerini float:right la kenarlara yasla.
    sonra yukarıdaki koda
    <div id ="ana">

    <div class="left">

    <? ilk kategori haberleri listele ?>

    </div>

    <div class="right">

    <?2.kategoriyi listelet ?>

    </div>
    </div>

    şeklinde yapabilirsin.Umarım doğru anlamışımdır.
  • 28-05-2008, 19:47:06
    #7
    Rozantholl adlı üyeden alıntı: mesajı görüntüle
    2 bölümden oluşan bir tablo içine 2kodu ayrı ayrı koymayı denesen?
    yapıyorum ama olmuyor bak kodlar bunlar senin dediğin gibi yapınca sayfayo bozuyor ve bişey cıkmıyor

    <?php
    #### www.netopsiyon.com # http://www.netopsiyon.net # Block_Adi yerine bloğu kaydettiğiniz adı yazmanız gerekmektedir.##
    if (eregi("block-test",$PHP_SELF)) {
        Header("Location: index.php");
        die();
    }
    global $prefix, $db; 
    <table border="1" width="32%" id="table1" height="132">
    	<tr>
    		<td>
    $sql = "SELECT sid, title, comments, counter FROM ".$prefix."_stories WHERE  topic='1'  ORDER BY sid DESC LIMIT 0,5"; 
    $result = $db->sql_query($sql); 
    while (list($sid, $title, $comments, $counter) = $db->sql_fetchrow($result)) { 
    $title2= substr($title,0,20); 
    $content .= "<img src=\"images/icon_dot.gif\" border=0 valign=absmiddle>&nbsp; <a href=\"modules.php?name=News&file=article&sid=".$sid."\">$title</a><br>"; 
    } 
    		</td>
    		<td>
    global $prefix, $db; 
    
    $sql = "SELECT sid, title, comments, counter FROM ".$prefix."_stories WHERE  topic='2'  ORDER BY sid DESC LIMIT 0,5"; 
    $result = $db->sql_query($sql); 
    while (list($sid, $title, $comments, $counter) = $db->sql_fetchrow($result)) { 
    $title2= substr($title,0,20); 
    $content .= "<p><img src=\"images/icon_dot.gif\" border=0 valign=absmiddle>&nbsp; <a href=\"modules.php?name=News&file=article&sid=".$sid."\">$title</a><br>"; 
    }
    		</td>
    	</tr>
    </table>
    ?>

    orjınal kod

    <?php
    #### www.netopsiyon.com # http://www.netopsiyon.net # Block_Adi yerine bloğu kaydettiğiniz adı yazmanız gerekmektedir.##
    if (eregi("block-test",$PHP_SELF)) {
        Header("Location: index.php");
        die();
    }
    global $prefix, $db; 
    
    $sql = "SELECT sid, title, comments, counter FROM ".$prefix."_stories WHERE  topic='1'  ORDER BY sid DESC LIMIT 0,5"; 
    $result = $db->sql_query($sql); 
    while (list($sid, $title, $comments, $counter) = $db->sql_fetchrow($result)) { 
    $title2= substr($title,0,20); 
    $content .= "<img src=\"images/icon_dot.gif\" border=0 valign=absmiddle>&nbsp; <a href=\"modules.php?name=News&file=article&sid=".$sid."\">$title</a><br>"; 
    } 
    
    global $prefix, $db; 
    
    $sql = "SELECT sid, title, comments, counter FROM ".$prefix."_stories WHERE  topic='2'  ORDER BY sid DESC LIMIT 0,5"; 
    $result = $db->sql_query($sql); 
    while (list($sid, $title, $comments, $counter) = $db->sql_fetchrow($result)) { 
    $title2= substr($title,0,20); 
    $content .= "<p><img src=\"images/icon_dot.gif\" border=0 valign=absmiddle>&nbsp; <a href=\"modules.php?name=News&file=article&sid=".$sid."\">$title</a><br>"; 
    } 
    
    ?>
  • 28-05-2008, 19:50:25
    #8
       <?php
    #### www.netopsiyon.com # http://www.netopsiyon.net # Block_Adi yerine bloğu kaydettiğiniz adı yazmanız gerekmektedir.##
    if (eregi("block-test",$PHP_SELF)) {
        Header("Location: index.php");
        die();
    }
    global $prefix, $db;
    ?>
    <table border="1" width="32%" id="table1" height="132">
        <tr>
            <td>
    <?
    $sql = "SELECT sid, title, comments, counter FROM ".$prefix."_stories WHERE  topic='1'  ORDER BY sid DESC LIMIT 0,5"; 
    $result = $db->sql_query($sql); 
    while (list($sid, $title, $comments, $counter) = $db->sql_fetchrow($result)) { 
    $title2= substr($title,0,20); 
    $content .= "<img src=\"images/icon_dot.gif\" border=0 valign=absmiddle>&nbsp; <a href=\"modules.php?name=News&file=article&sid=".$sid."\">$title</a><br>"; 
    } ?>
            </td>
            <td>
    <?
    global $prefix, $db; 
    
    $sql = "SELECT sid, title, comments, counter FROM ".$prefix."_stories WHERE  topic='2'  ORDER BY sid DESC LIMIT 0,5"; 
    $result = $db->sql_query($sql); 
    while (list($sid, $title, $comments, $counter) = $db->sql_fetchrow($result)) { 
    $title2= substr($title,0,20); 
    $content .= "<p><img src=\"images/icon_dot.gif\" border=0 valign=absmiddle>&nbsp; <a href=\"modules.php?name=News&file=article&sid=".$sid."\">$title</a><br>"; 
    } ?>
            </td>
        </tr>
    </table>
    Şu şekilde denermisin?
  • 28-05-2008, 19:53:06
    #9
    denedim üste bir boş tablo cıktı ve henry li haber sag tarafa gecmedi