sub displaypar(b,c)
sql1="select * from users where id='"&b&"'"
set rrs=server.CreateObject("adodb.recordset")
rrs.open sql1,conn,2,3
while (!rrs.eof )
d = rrs.fields("part") 'part为你的数据库中的列名
'在这儿你可以把你要的数据保留下来
Response.write d ‘也可以写下来,
displaypar(d,c)
wend
end sub
Function displaypar(b,c)
sql1="select * from users where id='"&b&"'"
set rrs=server.CreateObject("adodb.recordset")
rrs.open sql1,conn,2,3
if rrs.eof then
return
end if
displaypar(b,c)
Exit Function