<% galerieid = cint(request.querystring("galerieid")) bildid = request.querystring("bildid") set objConn = Server.CreateObject("ADODB.Connection") objConn.Connectionstring = "schneekopf" objConn.Open set Rs1 = Server.CreateObject("ADODB.Recordset") rs1.open "select * from bildergalerie where galerie = " & galerieid, objconn set Rs2 = Server.CreateObject("ADODB.Recordset") rs2.open "select * from galeriename where id = " & galerieid, objconn set Rs21 = Server.CreateObject("ADODB.Recordset") rs21.open "select * from bildergalerie where galerie =" & galerieid & " order by id asc", objconn set objrsanz = Server.CreateObject("ADODB.Recordset") objrsanz.open "select count(*) as Anzahl from bildergalerie where galerie = " & galerieid, objconn datensaetze = objrsanz("Anzahl") rs21.move + bildid bild=rs21("name") %> <%end if%>

<%=rs2("name")%>

<%if bildid=0 then else%> <%=bildid%>/<%=datensaetze%> <%if bildid+1=datensaetze then else%> <%end if%>

Fenster schließen