![]() | |
| | #1 (permalink) |
| Sadece inan! Üyelik Tarihi: 06/2004 Yer: Bulutların ve Sonsuz maviliğin altı
Mesaj: 226
|
Merhabalar, mySQL içerisinde ASP Recordset kullanimi degisiklige maruz kaliyormu? yani mySQL de Recordseti normal Acceste kullandigimiz gibi kullanamiyormuyuz? Ben bir ornegimde Kod: TotalRecs = rs.recordcount rs.Pagesize=intPageSize TotalPages = cInt(rs.pagecount) rs.absolutepage=PageNo Access veritabanina baglaninca hicbir sorun cikmiyor, sayfalarim ve hangi sayfada oldugum Veritabanimda kac kayit oldugu hatasiz bir sekilde goruntuleniyor Fakat mySQL baglaninca sayfalama, recordset icerisindeki kayitlari ogrenme, ve kacinci sayfada oldugumu gorme yani sayfa set etme islemleri hata veriyor. Sayfalama olayini ve veritabanimdaki kayit sayisini hatasiz bir sekilde nasil ogrenebilirim, Buna SQL Alternatif kodu ornegi varmi? Tesekkurler |
| | |
| | #4 (permalink) |
| Üye Üyelik Tarihi: 06/2004
Mesaj: 5
|
<% Set Recs = Conn.Execute("Select Count(id) As toplam From tablo") if Not Recs.Eof then intRecords= "" & Recs("toplam") &"" else intRecords= "0" end if Recs.Close Set Recs = Nothing intPage = Request.QueryString("sayfa") If intPage = "" OR not IsNumeric(intPage) Then intPage = Int(1) Else intPage = Int(intPage) End If intPageSize = 25 'Sayfada Gözükecek Kayıt sayısı intStart = intPage*intPageSize intStart = intStart-intPageSize intPages = Int(intRecords/intPageSize)+1 Set Rec = Conn.Execute("SELECT * FROM tablo Order By baslik LIMIT " & intStart & ", " & intPageSize & "") If Rec.Eof or Rec.Bof Then Response.Write "<p align=""center"">Kayıt Bulunamadı.</p>" Else Do Until Rec.Eof Response.Write rec("id") Rec.Movenext Loop End If Rec.Close Set Rec = Nothing %> |
| | |
![]() |
| Bookmarks |
| Seçenekler | |
| |
Benzer Konular | ||||
| Konu | Konuyu açana göre | Forum | Cevap | En Son Mesaj |
| Asp.Net - Coklu Recordset | memphiswoo | ASP | 1 | 18/12/2005 03:06 |
| recordset hakkında | StarturE | Visual Basic | 10 | 25/11/2005 03:08 |
| Excel recordset VB6 | apachesoul | Visual Basic | 3 | 22/11/2005 01:17 |
| recordset paging | sofistike | ASP | 7 | 28/05/2005 13:35 |
| Recordset Locktype. | kuen | ASP | 3 | 11/11/2003 18:28 |
| Reklamlar & Desteklenenler | |
| Hassas Valf | Hassas Kaplama | Antalyamız | Gazete | Ticari Bilişim | Hakan Müştak | Rüya Tabirleri | Kadın | Hastalıklar | Cepte msn ve e-posta | Webmaster | Antalya Aupair | Turkish Property Antalya | Forum | Chat | Perde | Adsl | Araba | bolindir.com | guncelle.com | livescore | Web Tasarım | evden eve nakliyat | forum | evden eve | sohbet | Resimcim| Kalifiye İnsan Kaynakları | Web Tasarım | Oyun | Yusuf KOÇ | Akın Yorulmaz | şiir | UFO | Web Tasarım | Oyunlar | Canlı Tv | |