28,408
社区成员
发帖
与我相关
我的任务
分享
<!--#include file="conn.asp" -->
<%
file_name=session("up_file_name") '得到附件文件名
if file_name<>"" then file_path_name="upfile/"&file_name else file_path_name=" " end if
sql="update news set 附件='"&file_path_name&"' where id="&id&" and 附件=''"
conn.Execute sql
response.Write "<script language=javascript>{window.alert('附件修改成功!');window.location.href='editlist.asp';}</script>"
%>
<!--#include file="conn.asp" -->
<%
file_name=session("up_file_name") '得到附件文件名
if file_name<>"" then file_path_name="upfile/"&file_name else file_path_name=" " end if
sql="select * from news where ID="&ID&""
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,2
rs("附件")=file_path_name
rs.update
response.Write "<script language=javascript>{window.alert('附件修改成功!');window.location.href='editlist.asp';}</script>"
%>