I am trying to get the code below to work basically a table where all of the entries are linked togethre by a parent column, but I keep getting this error, I kno i have got thi sort of thing working before but just can't see what is going wrong:
ADODB.Recordset error '800a0e78'
Operation is not allowed when the object is closed.
<%
function childCats(id)
If id <> "" Then
SQL="SELECT id,name,parent FROM category where active=1 AND parent="&id&" order by name"
set rs=objconn.execute(SQL)
If Not rs.BOF AND not rs.EOF Then
response.write("<ul>"
Do While Not rs.EOF
response.write("<li>"&rs("name"
childCats(rs("id"
rs.movenext
loop
response.write("</ul>"
End If
rs.close
Else
Exit function
End if
End Function
SQL="SELECT id,name,parent FROM category where active=1 AND parent=-1 order by name"
set cat=objconn.execute(SQL)
Do While Not cat.EOF
%>
<li><%=cat("name"
<%=childCats(cat("id"
<%
cat.movenext
loop
cat.close
%>
any help would be much appreciated!
Cheers
Tim