ASP 如何显示已登陆用户的其他信息?拜托了各位 谢谢

2025-03-24 04:18:40
推荐回答(1个)
回答1:

<% set rec=Server.CreateObject("ADODB.recordset") rec.cursorlocation=3 str="select * from [用户表名] where [用户id]='"&session("user")&"'" rec.open str,dbCon,1,3 %> 你上面都说了只能显示用户名。 那就是已经都查询完用户表了,那把其他信息写到该写的地方。 如:<%=rec("userid")%>,<%=rec("username")%> 这样

满意请采纳