• 28-05-2008, 19:57:18
    #10
    İlginç,kodu bu şekilde değiştirdim,normal çıkıyor bende.
    Selam yazıları tablo içinde.
    Senin yapmak istediğinin aynısı aslında.


       <?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>
    <?
    echo "selam<br />"; 
    echo "selam<br />";
    echo "selam<br />";
    echo "selam<br />";
    echo "selam<br />";
    echo "selam<br />";?>
            </td>
            <td>
    <?
    echo "selam<br />";
    echo "selam<br />";
    echo "selam<br />";
    echo "selam<br />";
    echo "selam<br />";
    echo "selam<br />"; ?>
            </td>
        </tr>
    </table>
  • 28-05-2008, 20:00:52
    #11


    seninkini koyunca boyle oluyor ama altında blok boş diyor neyse o değilde benim kodu koyunca neden yan yana olmadıgını merak ettım şimdi

    sağol ilgilenmen yeter
  • 28-05-2008, 20:06:43
    #12
    O verdiğim selam örnekdi.O kodun çıktısıda buna benzer diye vermiştim.
    HTML çıktısından bakmak lazım aslında.Başka bi divin tablonun içine mi yazıyoki.
    Şu sana ilk verdiğim kodu tek başına çalıştırırmısın bağımsız bi yerde
    Normalde sütunlarda göstermesi lazım.Çok ilginç,başka bi yerde bişi var sanırım.
  • 28-05-2008, 22:58:26
    #13
    evet arkadaşlar yaparım diyen yok mu
  • 28-05-2008, 23:06:17
    #14
    burdan bazen tam çözüm herkes söyleyemeyebilir güvenebileceğin ve ver bilgilerini yaparm diyen birisine bilgilerini ver ve ftp ne bağlanarak yapsın derim ben.
    birde bunu denermisn biraz garip oldu gibi ama
  • 29-05-2008, 00:39:00
    #15
    <?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; 
    echo '<div style="width:300px; height:200px;"><div style="float:left;padding-right:10px">';
    $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>";  
    } 
    echo '</div><div style="float:left;padding-right:10px">';
    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>";  
    }  
    echo '</div></div>';
    ?>
    bunu dener misin?
  • 29-05-2008, 04:37:00
    #16
    Ben de caddeci adasimin cozumune alternatif tablo yaparak cozuyum.

    <?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);  
    echo "<table><tr><td>"; // Tablonun soldaki ilk hucresinin olusturulmasi
    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>";  
    }  
    
    echo "</td><td>"; // Sol hucrenin kapatilip saga gecilmesi
    
    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>";  
    }  
    echo "</td></tr></table>"; // sag hucrenin ve tablonun bitirilmesi
    
    ?>
    Selam olsun.

    Selim Dogan
  • 29-05-2008, 05:59:04
    #17
    Yanılmıyorsam Phpnuke Kullanıyorsun.

    İlk Başladığım Zamanlar Bende Kullanmıştım.

    Aşağıdaki Kodları Kullanırsan Sorunun Çözulecektır.

    <?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=\"https://www.r10.net/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;  
    $content .= "<table width=\"100%\" cellpadding=\"2\" cellspacing=\"2\" align=\"center\"><tr>";
    $sql = "SELECT sid, title, comments, counter FROM ".$prefix."_stories WHERE  topic='2'  ORDER BY sid DESC LIMIT 0,5";  
    $result = $db->sql_query($sql);  
    $yanyanacek=1;
    while (list($sid, $title, $comments, $counter) = $db->sql_fetchrow($result)) {  
    $title2= substr($title,0,20);  
    $content .= "<td width=\"50%\"><p><img src=\"https://www.r10.net/images/icon_dot.gif\" border=0 valign=absmiddle>&nbsp; <a href=\"modules.php?name=News&file=article&sid=".$sid."\">$title</a><br>";  
    if($yanyanacek%2 == 0) $content .= "</tR><TR>";
     $yanyanacek++;
    }  
    $content .= "</tr></table>";
    ?>
    Çözülüp Çözülmediğini Yazarsan Kodları Bir Kontrol Ederim.

    Saygılarımla.

    Burak Altunok.
  • 29-05-2008, 11:53:13
    #18
    Rozantholl adlı üyeden alıntı: mesajı görüntüle
    burdan bazen tam çözüm herkes söyleyemeyebilir güvenebileceğin ve ver bilgilerini yaparm diyen birisine bilgilerini ver ve ftp ne bağlanarak yapsın derim ben.
    birde bunu denermisn biraz garip oldu gibi ama

    seninkide olmadı ama localhostta deniyorum onun için ftp ye falan gerek yok ki zaten kodlar burda sağol

    Caddeciyiz adlı üyeden alıntı: mesajı görüntüle
    <?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; 
    echo '<div style="width:300px; height:200px;"><div style="float:left;padding-right:10px">';
    $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>";  
    } 
    echo '</div><div style="float:left;padding-right:10px">';
    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>";  
    }  
    echo '</div></div>';
    ?>
    bunu dener misin?
    denedim hem sağa geçmedi hemde blogun ustunde baya bir boşluk oluştu teşekkür ederim

    KelebekSimi adlı üyeden alıntı: mesajı görüntüle
    Ben de caddeci adasimin cozumune alternatif tablo yaparak cozuyum.
    <?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);  
    echo "<table><tr><td>"; // Tablonun soldaki ilk hucresinin olusturulmasi
    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>";  
    }  
    echo "</td><td>"; // Sol hucrenin kapatilip saga gecilmesi
    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>";  
    }  
    echo "</td></tr></table>"; // sag hucrenin ve tablonun bitirilmesi
    ?>
    Selam olsun.
    Selim Dogan
    malesef kardeş seninkinde de ne bozuldu ne sağa gitti

    Chamade malesef seninkide olmadı