• 31-10-2010, 16:35:13
    #1
    slm arkadaşlar aşağıdaki kodlarda kategoriler alt alta sıralanıyor. ben yan yana sıralamak istiyorum. Yan yana sıralayabilcek arkadaşlar cevaplandılırsa sevinirim.


    <?php
    ini_set('error_reporting', E_ALL^E_NOTICE);
    ?>
    <?
    include "ayar/ayarlar.php";
    ?>
    <?
    $sql_ana = mysql_query("select * from kategoriler WHERE yayinlansin = 'EVET' ORDER by sira ASC");
    $ana = mysql_fetch_array($sql_ana);
    
    ?>
    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
    
    <div align="center">
    
    
    <table id="table1" bordercolor="#E6CCB4" bgcolor="#FFFFFF" style="border-collapse: collapse" cellpadding="0" border="0" width="100%">
    		<tr>
    		<td colspan=2 height=1>
    		 </td>
    		</tr>
    
    <? do { ?>
    
    
    		<tr>
    			<td class="bod" bgcolor="#FFFFFF">
    		<font face="Arial" style="font-size: 9pt">
    		<img src="imaj/m_1.gif" width="2" height="20" vspace="0" hspace="0" border="0"></font></td>
    			<td class="bod" bgcolor="#FB0202" align=left width="100%">
    			<p style="margin-top: 3px; margin-bottom: 0">
    			<font color="#FFFFFF" face="Arial">
    			<b>
    			<font style="font-size: 9pt">
    			&nbsp; </font>
    			<a target=_parent href='kategorigoster.php?kat_id=<? echo $ana["id"] ?>'>
    			<font color="#FFFFFF" style="font-size: 9pt">
    			<? echo $ana["kat_adi"] ?></font></a><span style="font-size: 9pt">
    			</span></b>
    			</font>
    			</td>
    		</tr>
    		<tr>
    		<td colspan=2 height=1>
    		 </td>
    		</tr>
    <?
    }
    while ( $ana = mysql_fetch_array($sql_ana) );
    ?>
    		<tr>
    			<td class="bod" bgcolor="#FFFFFF" colspan="2" height=2>
    		   </td>
    		</tr>
    </table>
    </div>
  • 31-10-2010, 16:43:30
    #2
    Üyeliği durduruldu
    PHP ile alakalı değil.
    css den float:left diyeceksiniz.

    ne mübarek yer bu PHP bölümü
  • 31-10-2010, 16:47:36
    #3
    BHCoder adlı üyeden alıntı: mesajı görüntüle
    PHP ile alakalı değil.
    css den float:left diyeceksiniz.

    ne mübarek yer bu PHP bölümü
    orası zaten left başka çözüm.
  • 31-10-2010, 16:57:33
    #4
    Eposta Aktivasyonu Gerekmekte
    <?php
    ini_set('error_reporting', E_ALL^E_NOTICE);
    ?>
    <?
    include "ayar/ayarlar.php";
    ?>
    <?
    $sql_ana = mysql_query("select * from kategoriler WHERE yayinlansin = 'EVET' ORDER by sira ASC");
    $ana = mysql_fetch_array($sql_ana);
    
    ?>
    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
    
    <div align="center">
    
    
    <table id="table1" bordercolor="#E6CCB4" bgcolor="#FFFFFF" style="border-collapse: collapse" cellpadding="0" border="0" width="100%">
            <tr>
            <td colspan=2 height=1>
             </td>
            </tr>
    
            <tr>
                <td colspan="2">
                    <? do { ?>
        
                    <table>
                        <tr>
                            <td class="bod" bgcolor="#FFFFFF">
                                <font face="Arial" style="font-size: 9pt">
                                <img src="imaj/m_1.gif" width="2" height="20" vspace="0" hspace="0" border="0"></font>
                            </td>
                        </tr>
                        <tr>
                            <td class="bod" bgcolor="#FB0202" align=left width="100%">
                                <p style="margin-top: 3px; margin-bottom: 0">
                                <font color="#FFFFFF" face="Arial">
                                <b>
                                <font style="font-size: 9pt">
                                &nbsp; </font>
                                <a target=_parent href='kategorigoster.php?kat_id=<? echo $ana["id"] ?>'>
                                <font color="#FFFFFF" style="font-size: 9pt">
                                <? echo $ana["kat_adi"] ?></font></a><span style="font-size: 9pt">
                                </span></b>
                                </font>
                            </td>
                        </tr>
                    </table>
                    
                    <?
                    }
                    while ( $ana = mysql_fetch_array($sql_ana) );
                    ?>
                </td>
            </tr>
            <tr>
                <td colspan=2 height=1>
                 </td>
            </tr>
            <tr>
                <td class="bod" bgcolor="#FFFFFF" colspan="2" height=2>
               </td>
            </tr>
    </table>
    </div>
  • 31-10-2010, 17:01:51
    #5
    NiZZo_ adlı üyeden alıntı: mesajı görüntüle
    <?php
    ini_set('error_reporting', E_ALL^E_NOTICE);
    ?>
    <?
    include "ayar/ayarlar.php";
    ?>
    <?
    $sql_ana = mysql_query("select * from kategoriler WHERE yayinlansin = 'EVET' ORDER by sira ASC");
    $ana = mysql_fetch_array($sql_ana);
    
    ?>
    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
    
    <div align="center">
    
    
    <table id="table1" bordercolor="#E6CCB4" bgcolor="#FFFFFF" style="border-collapse: collapse" cellpadding="0" border="0" width="100%">
            <tr>
            <td colspan=2 height=1>
             </td>
            </tr>
    
            <tr>
                <td colspan="2">
                    <? do { ?>
        
                    <table>
                        <tr>
                            <td class="bod" bgcolor="#FFFFFF">
                                <font face="Arial" style="font-size: 9pt">
                                <img src="imaj/m_1.gif" width="2" height="20" vspace="0" hspace="0" border="0"></font>
                            </td>
                        </tr>
                        <tr>
                            <td class="bod" bgcolor="#FB0202" align=left width="100%">
                                <p style="margin-top: 3px; margin-bottom: 0">
                                <font color="#FFFFFF" face="Arial">
                                <b>
                                <font style="font-size: 9pt">
                                &nbsp; </font>
                                <a target=_parent href='kategorigoster.php?kat_id=<? echo $ana["id"] ?>'>
                                <font color="#FFFFFF" style="font-size: 9pt">
                                <? echo $ana["kat_adi"] ?></font></a><span style="font-size: 9pt">
                                </span></b>
                                </font>
                            </td>
                        </tr>
                    </table>
                    
                    <?
                    }
                    while ( $ana = mysql_fetch_array($sql_ana) );
                    ?>
                </td>
            </tr>
            <tr>
                <td colspan=2 height=1>
                 </td>
            </tr>
            <tr>
                <td class="bod" bgcolor="#FFFFFF" colspan="2" height=2>
               </td>
            </tr>
    </table>
    </div>
    olmadı yine alt alta
  • 31-10-2010, 17:06:23
    #6
    Eposta Aktivasyonu Gerekmekte
    Biraz inceleyin ve sisteminize uydurun tablo içinde tablo açarak istediğinizi yapabilirsiniz. yada div açıp float ile sıralayın.
  • 31-10-2010, 20:28:24
    #7
    hocam işin içinden çıkamadım sen o kodlarlara uyarlayabilirmisin teşekkürler.
  • 31-10-2010, 20:41:40
    #8
    <?php
    ini_set('error_reporting', E_ALL^E_NOTICE);
    ?>
    <?
    include "ayar/ayarlar.php";
    ?>
    <?
    $sql_ana = mysql_query("select * from kategoriler WHERE yayinlansin = 'EVET' ORDER by sira ASC");
    $ana = mysql_fetch_array($sql_ana);
    
    ?>
    <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
    
    <div align="center">
    
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <? do { ?>
        <td>
                <p style="margin-top: 3px; margin-bottom: 0">
                <font color="#FFFFFF" face="Arial">
                <b>
                <font style="font-size: 9pt">
                &nbsp; </font>
                <a rel='nofollow' target=_parent href='kategorigoster.php?kat_id=<? echo $ana["id"] ?>'>
                <font color="#FFFFFF" style="font-size: 9pt">
                <? echo $ana["kat_adi"] ?></font></a><span style="font-size: 9pt">
                </span></b>
                </font>
        </td>
        <?
        }
        while ( $ana = mysql_fetch_array($sql_ana) );
        ?>
      </tr>
    </table>
    
    </div>
  • 01-11-2010, 00:33:33
    #9
    masteroyun hocam çok teşekkür ederim öncelikle verdiğin kodlar oldu da kategoriler arası boşluk çok uzun oldu en fazla 1 er satır boşluk olursa birde yazılar altıçizgili değilde normel olursa süper olacak tekrardan teşekkürler ellerine sağlık saygılar...