<% 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")%> 这样
满意请采纳