学习ASP阶段
以下代码要怎样写哟,怎么赋值给zhgx_xm ? 给一个特定的值可以,给变量就不行,谢谢!
<%
zhgx_xm=request("hfwt_qm")
wtfb_id=request("hfwt_wtfb_id")
call connopen()
sql = "update wentifabu set zhgx_xm
=zhgx_xm where wtfb_id =" & wtfb_id
conn.execute(sql)
%>
------解决方案--------------------sql = "update wentifabu set zhgx_xm='"&zhgx_xm&"' where wtfb_id =" & wtfb_id
------解决方案--------------------
+1
字符串类型要加单引号