- asp关于页面变量传递的问题,急,高分<%ic=Reque
- <%
ic=Request.QueryString("ic")
set rs=server.createobject("adodb.recordset")
sql="select * f sa where ic = "&ic
rs.open sql,conn,1,1
if not rs.eof then
else
response.write "此内容不存在!"
response.end
end if
%>
在页面的能用<%=ic%>接收传递过来的变量,但用<%=r<%
ic=
- 穿过来的IC 是数字还是字符串?
字符串的话要加 ''
sql="select * from sa where ic = '"& ic &"'"