Benim sitemdede istediğin şekilde kod var. Asp. üstte yazdım ama onu kendi scriptine göre düzenlemek zor olur. Mantığını söyliyim hazırlaman daha kolay olur. For döngüsüyle 10 kayıt listele Reklam göster For döngüsüyle 10 kayıt listele Reklam göster For döngüsüyle 10 kayıt listele... 1 kere listelet copy/paste yap. otomatik olarak 11 olarak algılıyor.

PHP: while gibi. modulus kullanin (10'a bolumunden kalan sifir ise reklam bas).

SaveTargetUs' Alıntı:

Arkadaşlar su hazirkod.com daki gibi sıralam nasıl yapılıyor? yani 10 veri ardından bi reklam ardından tekrar bi 10 veri? nasıl olacak?

asp kod aşağıda. eğer siten php ise onu da yazayım... Kod:

&lt;% Set RS = Server. Createobject RS. Open &quot;SELECT FROM site WHERE onay='O' AND sira&gt;0 ORDER by sira&quot;, BAG,1,3 n = RS. RecordCount %&gt; &lt;table border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot; width=&quot;100%&quot; bgcolor=&quot;#ADBFF1&quot;&gt; &lt;tr bgcolor=&quot;#f7f7f7&quot;&gt; &lt;td valign=&quot;middle&quot; nowrap align=&quot;center&quot; bgcolor=&quot;#3763E1&quot; colspan=&quot;2&quot;&gt;&lt;font color=&quot;#FFFFFF&quot; face=&quot;Verdana&quot; size=&quot;1&quot;&gt;Sıra&lt;/font&gt;&lt;/td&gt; &lt;/center&gt; &lt;td width=&quot;100%&quot; valign=&quot;middle&quot; bgcolor=&quot;#3763E1&quot;&gt; &lt;p align=&quot;left&quot;&gt;&lt;font color=&quot;#FFFFFF&quot; face=&quot;Verdana&quot; size=&quot;1&quot;&gt;En Çok Hit Alan 30&lt;/font&gt;&lt;/p&gt; &lt;/td&gt; &lt;center&gt; &lt;td valign=&quot;middle&quot; bgcolor=&quot;#3763E1&quot;&gt; &lt;p align=&quot;center&quot;&gt;&lt;font color=&quot;#FFFFFF&quot; face=&quot;Verdana&quot; size=&quot;1&quot;&gt;Kategori&lt;/font&gt;&lt;/p&gt; &lt;/td&gt; &lt;td nowrap align=&quot;center&quot; valign=&quot;middle&quot; bgcolor=&quot;#3763E1&quot;&gt;&lt;font color=&quot;#FFFFFF&quot; face=&quot;Verdana&quot; size=&quot;1&quot;&gt;Hit&lt;/font&gt;&lt;/td&gt; &lt;/tr&gt; &lt;% FOR i = 1 to 10 IF RS. eof THEN EXIT FOR IF i mod 2 = 0 THEN bg = &quot;#FFFFFF&quot; ELSE bg = &quot;#FFFFFF&quot; END IF IF RS &gt; RS THEN img = &quot;up&quot; END IF IF RS = RS THEN img = &quot;same&quot; END IF IF RS &lt; RS THEN img = &quot;down&quot; END IF IF RS = &quot;0&quot; THEN img = &quot;new&quot; END IF %&gt; &lt;tr&gt; &lt;td nowrap align=&quot;center&quot; bgcolor=&quot;#FFFFFF&quot;&gt;&lt;font face=&quot;Verdana&quot; size=&quot;1&quot;&gt;&lt;%=RS %&gt;&lt;/font&gt;&lt;/td&gt; &lt;td nowrap align=&quot;center&quot; bgcolor=&quot;#FFFFFF&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;image/&lt;%=img%&gt;. gif&quot;&gt;&lt;/td&gt; &lt;td width=&quot;100%&quot; bgcolor=&quot;#FFFFFF&quot;&gt;&lt;font face=&quot;Verdana&quot; size=&quot;1&quot;&gt;&lt;a href=&quot;out. asp?id=&lt;%=RS %&gt;&quot; target=&quot;_blank&quot; title=&quot;&lt;%=RS %&gt;&quot;&gt;&lt;%=RS %&gt;&lt;/a&gt;&lt;/font&gt;&lt;/td&gt; &lt;td width=&quot;100&quot; nowrap align=&quot;center&quot; valign=&quot;middle&quot; bgcolor=&quot;&lt;%=bg%&gt;&quot;&gt;&lt;font size=&quot;1&quot; face=&quot;Verdana&quot;&gt;&lt;a href=&quot;kategori. asp?kate=&lt;%=RS %&gt;&quot;&gt;&lt;%=RS %&gt;&lt;/a&gt;&lt;/font&gt;&lt;/td&gt; &lt;td width=&quot;50&quot; nowrap align=&quot;center&quot; bgcolor=&quot;#FFFFFF&quot; rowspan=&quot;1&quot;&gt;&lt;font face=&quot;Verdana&quot; size=&quot;1&quot;&gt;&lt;%=RS %&gt;&lt;/font&gt;&lt;/td&gt; &lt;/tr&gt; &lt;% RS. Movenext Next %&gt; &lt;/table&gt; &lt;/center&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;3&quot; width=&quot;100%&quot;&gt; &lt;tr&gt;&lt;td&gt; &lt;a href=&quot;http://www. x.com&quot; target=_blank&gt;&lt;img src=&quot;http://www. x.com/reklam. gif&quot; border=&quot;0&quot;&gt;&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;table border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot; bordercolor=&quot;#FFFFFF&quot;&gt; &lt;% FOR i = 1 to 10 IF RS. eof THEN EXIT FOR IF i mod 2 = 0 THEN bg = &quot;#FFFFFF&quot; ELSE bg = &quot;#FFFFFF&quot; END IF IF RS &gt; RS THEN img = &quot;up&quot; END IF IF RS = RS THEN img = &quot;same&quot; END IF IF RS &lt; RS THEN img = &quot;down&quot; END IF IF RS = &quot;0&quot; THEN img = &quot;new&quot; END IF %&gt; &lt;tr&gt; &lt;td nowrap align=&quot;center&quot; bgcolor=&quot;#FFFFFF&quot;&gt;&lt;font face=&quot;Verdana&quot; size=&quot;1&quot;&gt;&lt;%=RS %&gt;&lt;/font&gt;&lt;/td&gt; &lt;td nowrap align=&quot;center&quot; bgcolor=&quot;#FFFFFF&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;image/&lt;%=img%&gt;. gif&quot;&gt;&lt;/td&gt; &lt;td width=&quot;100%&quot; bgcolor=&quot;#FFFFFF&quot;&gt;&lt;font face=&quot;Verdana&quot; size=&quot;1&quot;&gt;&lt;a href=&quot;out. asp?id=&lt;%=RS %&gt;&quot; target=&quot;_blank&quot; title=&quot;&lt;%=RS %&gt;&quot;&gt;&lt;%=RS %&gt;&lt;/a&gt;&lt;/font&gt;&lt;/td&gt; &lt;td width=&quot;100&quot; nowrap align=&quot;center&quot; valign=&quot;middle&quot; bgcolor=&quot;&lt;%=bg%&gt;&quot;&gt;&lt;font size=&quot;1&quot; face=&quot;Verdana&quot;&gt;&lt;a href=&quot;kategori. asp?kate=&lt;%=RS %&gt;&quot;&gt;&lt;%=RS %&gt;&lt;/a&gt;&lt;/font&gt;&lt;/td&gt; &lt;td width=&quot;50&quot; nowrap align=&quot;center&quot; bgcolor=&quot;#FFFFFF&quot; rowspan=&quot;1&quot;&gt;&lt;font face=&quot;Verdana&quot; size=&quot;1&quot;&gt;&lt;%=RS %&gt;&lt;/font&gt;&lt;/td&gt; &lt;/tr&gt; &lt;% RS. Movenext Next %&gt; &lt;/table&gt; &lt;/center&gt;&lt;/div&gt;&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;3&quot; width=&quot;100%&quot;&gt; &lt;tr&gt; &lt;tr&gt;&lt;td&gt; &lt;a href=&quot;http://www. x.com&quot; target=_blank&gt;&lt;img border=&quot;0&quot; src=&quot;reklam. gif&quot; border=&quot;0&quot;&gt;&lt;/a&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;table border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot; bordercolor=&quot;#FFFFFF&quot;&gt; &lt;% FOR i = 1 to 10 IF RS. eof THEN EXIT FOR IF i mod 2 = 0 THEN bg = &quot;#FFFFFF&quot; ELSE bg = &quot;#FFFFFF&quot; END IF IF RS &gt; RS THEN img = &quot;up&quot; END IF IF RS = RS THEN img = &quot;same&quot; END IF IF RS &lt; RS THEN img = &quot;down&quot; END IF IF RS = &quot;0&quot; THEN img = &quot;new&quot; END IF %&gt; &lt;tr&gt; &lt;td nowrap align=&quot;center&quot; bgcolor=&quot;#FFFFFF&quot;&gt;&lt;font face=&quot;Verdana&quot; size=&quot;1&quot;&gt;&lt;%=RS %&gt;&lt;/font&gt;&lt;/td&gt; &lt;td nowrap align=&quot;center&quot; bgcolor=&quot;#FFFFFF&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;image/&lt;%=img%&gt;. gif&quot;&gt;&lt;/td&gt; &lt;td width=&quot;100%&quot; bgcolor=&quot;#FFFFFF&quot;&gt;&lt;font face=&quot;Verdana&quot; size=&quot;1&quot;&gt;&lt;a href=&quot;out. asp?id=&lt;%=RS %&gt;&quot; target=&quot;_blank&quot; title=&quot;&lt;%=RS %&gt;&quot;&gt;&lt;%=RS %&gt;&lt;/a&gt;&lt;/font&gt;&lt;/td&gt; &lt;td width=&quot;100&quot; nowrap align=&quot;center&quot; valign=&quot;middle&quot; bgcolor=&quot;&lt;%=bg%&gt;&quot;&gt;&lt;font size=&quot;1&quot; face=&quot;Verdana&quot;&gt;&lt;a href=&quot;kategori. asp?kate=&lt;%=RS %&gt;&quot;&gt;&lt;%=RS %&gt;&lt;/a&gt;&lt;/font&gt;&lt;/td&gt; &lt;td width=&quot;50&quot; nowrap align=&quot;center&quot; bgcolor=&quot;#FFFFFF&quot; rowspan=&quot;1&quot;&gt;&lt;font face=&quot;Verdana&quot; size=&quot;1&quot;&gt;&lt;%=RS %&gt;&lt;/font&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/p&gt; &lt;% RS. Movenext Next %&gt; &lt;/table&gt;

yok hayır tesekkur ederim asp kullanıyorum