%@ Language="VBScript"%> <% If Request.Querystring("ID") = "" Then %> <% NewsPos = request.querystring("or") Set objCon = Server.CreateObject ("ADODB.Connection") Set objRec = Server.CreateObject ("ADODB.Recordset") ' This is the limit size of news will display objRec.PageSize = 7 ' Do not limit the Cache Size objCon.Open Dbcon SQL = "SELECT * FROM gallery ORDER BY ID DESC" objRec.Open SQL, objCon ' Move the cursor on the last displayed record objRec.Move NewsPos %>
<% DisplayNum = DisplayNum + 1 objRec.MoveNext Loop %> <% if Not objRec.EOF Then %>
">Delete">
<% = ObjRec("image")%> and
<% = ObjRec("imglarge")%>