creo que ahi sobra un while wend, o no se para que lo pusiste... intenta poniendolo asi:
Código PHP:
<%@ LANGUAGE = "VBScript" %>
<!-- #include file="db.asp" -->
<%set rsprod=db.Execute("select * from fotografias order by idfoto")
articulo=rsprod("articulo")
descripcion=rsprod("descripcion")
counter=0
%>
<table>
<tr>
<%
do while not rsprod.eof%>
<td>
<%=rsprod("articulo")%>
<br>
<%=rsprod("descripcion")%>
</td>
<%
counter=counter+1
if counter Mod 6 =0 Then Response.Write"</tr><tr>"
rsprod.MoveNext
Loop
%>
</table>
</body>
</html>
<%
db.close
set db=nothing
%>
y si puedes paginar esto utilizando el siguiente ejemplo
http://www.soloasp.com.ar/vereje.asp?eje=30