|
% function changechr(str) str=server.htmlencode(str) str=replace(str,chr(39),"") str=replace(str,vbcrlf,"<br>") str=replace(str,chr(13),"<br>") changechr=str end function zhan_id=request("zhan_id") zhan_name=request("zhan_name") zhan_content=changechr(request("zhan_content")),加上这个就不能更新了,去掉才可以。这个有错吗 zhan_photo=request("zhan_photo") sql="update zhan_li set zhan_name='"&zhan_name&"',zhan_content='"&zhan_content&"',zhan_photo='"&zhan_photo&"' where zhan_id=1" conn.execute(sql) response.Redirect "admin.asp?action=myself" |
|