求助.
from page:<%if session("password")<>"" then%>
<script language="javascript">
function confirmud(name){
if (confirm("确定这个注销?"))
{
window.location.href = "zjudnews.asp?id=" +id
}
}
</script>
<HTML>
<HEAD>
<title>出租模块</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY>
<div align="center">
</div>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#E7E7E7">
<td width="590" height="25"><A HREF="index1.asp">首页</A> <A HREF="add.asp">添加</A> <A HREF="modify.asp">修改</A> <a href="SEARCH.ASP">查询</a> <a href="del.asp">删除</a> <a href="addzj.asp">添加租借信息</a> <a href="20050130_logout.asp">退出</a> </td>
</tr>
</table>
<table width="500" border="0" align=center cellpadding="0" cellspacing="0">
<tr></tr>
<tr>
<td colspan=8 bgcolor="#E7E7E7"><img src="nv.jpg" width="500" height="350"></td>
</tr>
</table>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#F6F6F6">
<td width="100" height="25">客户ID</td>
<td width="300">租借日期</td>
<td width="200">租借片名</td>
<td width="100">押金</td>
<td width="100">注销</td>
</tr>
</table>
<!--#include file="conn.asp" -->
<%
sql="select * from customer"
rs.open sql,conn,1,1 'RS参数设定为执行SQL的查询语法,数据库文件里的customer表中的数据,无论任何条件,全部设计为查询的对象,并由RS作为管理的参数。
if rs.EOF or rs.BOF then
Response.Write "数据库中暂无资料!"
else
do while not rs.EOF or rs.BOF
%>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="100" height="25"> <%=rs("customerid")%></td> <!-- 用户名 -->
<td width="300"><%=rs("rq")%></td>
<td width="200"><%=rs("name")%></td>
<td width="100"><%=rs("deposit")%></td>
<td width="25"><a href='javascript:confirmud(<%= rs("id") %>)'>是</a> </td>
<td width="25"><div align="center">
<!--备份 -->
</tr>
</table>
<%
rs.movenext
loop
end if
set rs=nothing
set conn=nothing
%>
</BODY>
</HTML>
<%else
Response.Redirect "login.asp"
end if%>
问题点数:0、回复次数:4Top
1 楼ztmaster(totem)回复于 2005-06-04 15:43:11 得分 0
要别人猜你求助什么吗?Top
2 楼aiolia725(海水太蓝)回复于 2005-06-04 15:43:46 得分 0
执行page:<!--#include file="conn.asp" -->
<%
id1=request("id")
sql = "update total set storage=storage+1 where id="+id1
rs.Open sql,conn,1,3
set rs=nothing
set conn=nothing
response.write "<script language=JavaScript>" & chr(13) & "alert('此条记录信息已经更新!');"&"window.location.href = 'index1.asp'"&" </script>"
%>
我想实现的是点击注销栏能相应的使total表的storage字段+1.但是ID是customer表中的,请各位帮忙看看应该如何实现.
万分感谢Top
3 楼lovebanyi(风云)回复于 2005-06-04 15:43:59 得分 0
说点信息吧。。直接把哪么长的代码贴出来。人家看了会晕Top
4 楼ztmaster(totem)回复于 2005-06-04 15:51:03 得分 0
<script language="javascript">
function confirmud(name){
if (confirm("确定这个注销?"))
{
id=name;
window.location.href = "zjudnews.asp?id=" +id;
}
}
</script>Top




