<% 'This the database connection string GununSozuConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("Db/yemek.mdb") %> <% ' The variables Dim strToddate, strAy, rsGununSozuHisRows, HisRows, Hisindex strToddate = Day(Now()) strAy = Month(Now()) %> <% ' The recordset set rsGununSozu = Server.CreateObject("ADODB.Recordset") rsGununSozu.ActiveConnection = GununSozuConnString rsGununSozu.Source = "SELECT Ay, Gun, Yil, Soz1,Soz2,Soz3 From SOZ WHERE Gun = " & strToddate & "" rsGununSozu.CursorType = 0 rsGununSozu.CursorLocation = 2 rsGununSozu.LockType = 3 rsGununSozu.Open() rsGununSozuHisRows = 0 %> <% HisRows = 15 ' This is where we set how many records to be displayed. In this case we set it to 15. You can change it as from 5 or 10 Hisindex = 0 rsGununSozuHisRows = rsGununSozuHisRows + HisRows %> <% While ((HisRows <> 0) AND (NOT rsGununSozu.EOF)) %> <%=rsGununSozu("Soz1")%>
İçindekiler:<%=rsGununSozu("Soz2")%>
<%=rsGununSozu("Soz3")%>
<% Hisindex = Hisindex + 1 HisRows = HisRows - 1 rsGununSozu.MoveNext() Wend %> <% rsGununSozu.Close() Set rsGununSozu = Nothing %>