<% on error resume next sql = "SELECT C.nome,R.Categoria, COUNT(R.Categoria) As total FROM textos AS R, categoria AS C WHERE R.categoria=C.id_cat and R.liberado = true GROUP BY C.nome,R.Categoria ORDER BY Count(R.Categoria) DESC" call abre_conexao set rs = objconexao.execute(sql) t =0 do while not rs.eof %> <% t = t + rs("total") rs.movenext %> <% t = t + rs("total") rs.movenext loop set rs = nothing call fecha_conexao %>
Categorias
Total de Relatos
&nome=<%=rs("nome")%>"><%=rs("nome")%>
<%=rs("total")%>
&nome=<%=rs("nome")%>"><%=rs("Nome")%>
<%=rs("total")%>
 
<%=t%>