初学者,rs数据集是为空,存不少库,也是就上次我问的问题,还没有解决~~~
从查询结果页面转到某一用户产品修改页面:
<a href= "yx_xg.asp?id= <%=rs( "id ")%> &user_id= <%=rs( "user_id ")%> "> 查看 </a>
其中:user_id是 "用户编号 "在数据库中是唯一的;
id是数据库表yx_xg中的自动编号,在该表中唯一;(注:参数可正常传递)
在yx_xg.asp的部分代码如下:
```````````````````````````````````
<!--#include file= "conn.asp "-->
<%
set rs=server.createobject( "adodb.recordset ")
user_id=request( "user_id ")
id=request( "id ")
%>
````````````````````````````````````
<%
if request.QueryString( "action ")= "save " then
id =request( "id ")
user_id =request( "user_id ")
yx_htbh =request( "yx_htbh ")
yx_yxhz =request( "yx_yxhz ")
yx_ktrq =request( "yx_ktrq ")
yx_jedz =request( "yx_jedz ")
yx_yxdx =request( "yx_yxdx ")
yx_fwqx =request( "yx_fwqx ")
sql= "select * from yx_data where id= "&id
rs.open sql,conn,1,3
if not(rs.eof or rs.eof) then
rs( "yx_htbh ") =yx_htbh
rs( "yx_yxhz ") =yx_yxhz
rs( "yx_ktrq ") =CDate(yx_ktrq)
rs( "yx_jedz ") =yx_jedz
rs( "yx_yxdx ") =yx_yxdx
&nb