CONST adOpenStatic = 3, adLockReadOnly = 1, adCmdText = &H0001
Dim current_page ,rowcount ,i
current_page = TRIM(request("current_page"))
If current_page = "" Then
current_page = 1
End If
Set rs = Server.CreateObject("ADODB.Recordset")
sql="SELECT news.id, news.titolo, news.piattaforma, news.data FROM news WHERE news.piattaforma = 'ENGlastminute' order by news.data desc, news.id desc"
rs.Open sql, db, adOpenStatic, adLockReadOnly, adCmdText
num = rs.RecordCount
rs.pagesize = 40
rs.absolutepage = CINT(current_page)
rowcount = 0