teşekkürler valla geçen uğraşıyoduk bunuda bi inceliyelim..

aranan=request. form KayitSayisi = 10 If Request. QueryString &lt;&gt; &quot;&quot; Then Sayfa = CInt(Request. QueryString Elseif Request. QueryString = &quot;&quot; then Sayfa = 1 else Sayfa = 1 End If Set bakilan = conn. Execute(&quot;select from haber where dhaber like '%&quot; &amp; aranan &amp; &quot;%' Or kisatanim like '%&quot; &amp; aranan &amp; &quot;%' ORDER BY id DESC LIMIT &quot; &amp; - &amp; &quot;,&quot; &amp; KayitSayisi) Set SQLTop = conn. Execute(&quot;select count from haber where dhaber like '%&quot; &amp; aranan &amp; &quot;%' Or kisatanim like '%&quot; &amp; aranan &amp; &quot;%'&quot;) TopKayit = SQLTop(0) if bakilan. eof or bof then %&gt; &lt;%end if if bakilan. eof then%&gt; Kayıt Bulunamadı &lt;%else%&gt; &lt;table border=&quot;0&quot; width=&quot;100%&quot; id=&quot;table1&quot;&gt; &lt;% i=1 Do While Not bakilan. EOF %&gt; &lt;%if i&gt;1 then%&gt;&lt;tr&gt; &lt;td colspan=&quot;2&quot;&gt;&lt;hr&gt;&lt;/td&gt; &lt;/tr&gt; &lt;%end if%&gt; &lt;% subject=bakilan data=bakilan subject=lcase data=lcase data=left(data,80) aranan=lcase subject=replace(subject, aranan,&quot;&lt;span style=&quot;&quot;background-color: #FFFF00&quot;&quot;&gt;&quot;&amp;aranan&amp;&quot;&lt;/span&gt;&quot;) data=replace(data, aranan,&quot;&lt;span style=&quot;&quot;background-color: #FFFF00&quot;&quot;&gt;&quot;&amp;aranan&amp;&quot;&lt;/span&gt;&quot;) %&gt; &lt;tr&gt; &lt;td width=&quot;5%&quot; bgcolor=&quot;#EEEEEE&quot;&gt;&lt;%=i%&gt;&lt;/td&gt; &lt;td width=&quot;93%&quot; bgcolor=&quot;#EEEEEE&quot;&gt;&lt;a href=&quot;'fikra. asp?islem=oku&amp;id=&lt; %=bakilan %&gt;&lt;%=subject%&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; &lt;td colspan=&quot;2&quot;&gt;&lt;a href=&quot;fdgdfgd&quot;&gt;&lt;%=data%&gt;&lt;/td&gt; &lt;/tr&gt;&lt;%i=i+1 bakilan. MoveNext Loop %&gt; &lt;/table&gt; &lt;center&gt;Sayfalar: &lt;%if sayfa&lt;&gt;1 then response. write &quot;&lt;a href=?s=1 title='İlk sayfaya git'&gt;&lt;font size=2 face=webdings&gt;7&lt;/font&gt;&lt;/a&gt;&lt;/a&gt; &quot; end if If sayfa &gt; 1 Then response. write &quot;&lt;a href='?s=&quot; &amp; sayfa - 1 &amp; &quot;' title='Bir önceki sayfaya git'&gt;&lt;font size=2 face=webdings&gt;3&lt;/font&gt;&lt;/a&gt; &quot; End If pagecount=cint +1 limit=5 For y=1 To PageCount If sayfa=y Then response. write &quot;&lt;font size=1&gt;&lt;b&gt; &lt;/b&gt;&lt;/font&gt;&quot; &amp; &quot; &quot; Else If sayfa-limit &lt; y and y &lt; sayfa+limit Then response. write &quot;&lt;font size=1&gt;&lt;a href=?s=&quot; &amp; y &amp; &quot;&gt; &lt;/a&gt;&lt;/font&gt; &quot; End If End If Next If sayfa &lt; PageCount Then response. write &quot;&lt;a href='?s=&quot; &amp; sayfa + 1 &amp; &quot;' title='Bir sonraki sayfaya git'&gt;&lt;font size=2 face=webdings&gt;4&lt;/font&gt;&lt;/a&gt; &quot; End If If sayfa &lt;&gt; PageCount Then response. write &quot;&lt;a href='?s=&quot; &amp; PageCount &amp; &quot;' title='Son sayfaya git'&gt;&lt;font size=2 face=webdings&gt;8&lt;/font&gt;&lt;/a&gt; &quot; End If end if %&gt;

Selam Forumu Biraz İnceledimde Bu konuda sıkıntısı olan çok asp için mysql arama ve mysql sayfalama kodları paylaşayım istedim inş. işinize yarar Kolay Gelsin Mysqlde arama yapmak için Conn. adında db bağlantısını yaptığınızı varsayarak &lt;% aranan=request. form KayitSayisi = 10 If Request. QueryString &lt;&gt; &quot;&quot; Then Sayfa = CInt(Request. QueryString Elseif Request. QueryString = &quot;&quot; then Sayfa = 1 else Sayfa = 1 End If Set bakilan = conn. Execute(&quot;select from fikra where baslik like '%&quot; &amp; aranan &amp; &quot;%' Or fikra like '%&quot; &amp; aranan &amp; &quot;%' ORDER BY id DESC LIMIT &quot; &amp; - &amp; &quot;,&quot; &amp; KayitSayisi) Set SQLTop = conn. Execute(&quot;select count from fikra where baslik like '%&quot; &amp; aranan &amp; &quot;%' Or fikra like '%&quot; &amp; aranan &amp; &quot;%'&quot;) TopKayit = SQLTop(0) if bakilan. eof or bof then %&gt; &lt;%end if if bakilan. eof then%&gt; Kayıt Bulunamadı &lt;%else%&gt; &lt;table border=&quot;0&quot; width=&quot;100%&quot; id=&quot;table1&quot;&gt; &lt;% i=1 Do While Not bakilan. EOF %&gt; &lt;%if i&gt;1 then%&gt;&lt;tr&gt; &lt;td colspan=&quot;2&quot;&gt;&lt;hr&gt;&lt;/td&gt; &lt;/tr&gt; &lt;%end if%&gt; &lt;% subject=bakilan data=bakilan subject=lcase data=lcase data=left(data,80) aranan=lcase subject=replace(subject, aranan,&quot;&lt;span style=&quot;&quot;background-color: #FFFF00&quot;&quot;&gt;&quot;&amp;aranan&amp;&quot;&lt;/span&gt;&quot;) data=replace(data, aranan,&quot;&lt;span style=&quot;&quot;background-color: #FFFF00&quot;&quot;&gt;&quot;&amp;aranan&amp;&quot;&lt;/span&gt;&quot;) %&gt; &lt;tr&gt; &lt;td width=&quot;5%&quot; bgcolor=&quot;#EEEEEE&quot;&gt;&lt;%=i%&gt;&lt;/td&gt; &lt;td width=&quot;93%&quot; bgcolor=&quot;#EEEEEE&quot;&gt;&lt;a href=&quot;#fikraoku&quot; onClick=&quot;MM_openBrWindow('fikra. asp?islem=oku&amp;id=&lt;%=bakilan %&gt;','','scrollbars=yes, width=500, height=400')&quot;&gt; &lt;%=subject%&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt; &lt;td colspan=&quot;2&quot;&gt;&lt;a href=&quot;#fikraoku&quot; onClick=&quot;MM_openBrWindow('fikra. asp?islem=oku&amp;id=&lt;%=bakilan %&gt;','','scrollbars=yes, width=500, height=400')&quot;&gt;&lt;%=data%&gt;&lt;/td&gt; &lt;/tr&gt;&lt;%i=i+1 bakilan. MoveNext Loop %&gt; &lt;/table&gt; &lt;center&gt;Sayfalar: &lt;%if sayfa&lt;&gt;1 then response. write &quot;&lt;a href=?s=1 title='İlk sayfaya git'&gt;&lt;font size=2 face=webdings&gt;7&lt;/font&gt;&lt;/a&gt;&lt;/a&gt; &quot; end if If sayfa &gt; 1 Then response. write &quot;&lt;a href='?s=&quot; &amp; sayfa - 1 &amp; &quot;' title='Bir önceki sayfaya git'&gt;&lt;font size=2 face=webdings&gt;3&lt;/font&gt;&lt;/a&gt; &quot; End If pagecount=cint +1 limit=5 For y=1 To PageCount If sayfa=y Then response. write &quot;&lt;font size=1&gt;&lt;b&gt; &lt;/b&gt;&lt;/font&gt;&quot; &amp; &quot; &quot; Else If sayfa-limit &lt; y and y &lt; sayfa+limit Then response. write &quot;&lt;font size=1&gt;&lt;a href=?s=&quot; &amp; y &amp; &quot;&gt; &lt;/a&gt;&lt;/font&gt; &quot; End If End If Next If sayfa &lt; PageCount Then response. write &quot;&lt;a href='?s=&quot; &amp; sayfa + 1 &amp; &quot;' title='Bir sonraki sayfaya git'&gt;&lt;font size=2 face=webdings&gt;4&lt;/font&gt;&lt;/a&gt; &quot; End If If sayfa &lt;&gt; PageCount Then response. write &quot;&lt;a href='?s=&quot; &amp; PageCount &amp; &quot;' title='Son sayfaya git'&gt;&lt;font size=2 face=webdings&gt;8&lt;/font&gt;&lt;/a&gt; &quot; End If end if %&gt;

Sorun gen başımda tuncay geçici olarak çözmüştüm ama beceremedim açıkçası gene aynı yerde hata vermekte..

Hatanın Olduğu Satırı Yazsan İyi Olurdu Ama Tahminim Hata Burda Tür Uyumsuz Diyor Bu Satırı &gt; pagecount=cint +1 Bu Şekilde &gt; pagecount=Round değiştir dene bakalım