标题:关于 conn.Execute 语句的问题!
只看楼主
newyoung
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2014-5-11
 问题点数:0 回复次数:0 
关于 conn.Execute 语句的问题!
前面的两个  conn.Execute  都能成功执行,  但是 最后一个  conn.Execute  始终无法插入记录,浏览器显示空白,有哪些可能呢?这个跟表列的“类型” 有关吗? 这里面包括 “money"  "datetime"

代码如下:



  '第一个  conn.Execute
  conn.Execute("Update Member_User Set Money_Number=Money_Number-"&AllMonery&",Money_Consumption=Money_Consumption+"&AllMonery&" where user_name='"&trim(request.form("member_user"))&"'") '从会员账号扣款

  '第二个   conn.Execute
  shijian=now()
  dingdan=year(shijian)&month(shijian)&day(shijian)&hour(shijian)&minute(shijian)&second(shijian)
  MemberInfo_B=conn.execute("select ID,User_Name,Money_Number from Member_User where user_name='"&trim(request.form("member_user"))&"'") '获取会员信息
  conn.Execute("insert into Order_Record(Member_ID,Member_User,Order_no,Order_Action,Order_Note,Order_Money,A_Money_Number,Order_Time,State_num) values("&MemberInfo_B(0)&",'"&MemberInfo_B(1)&"','"&dingdan&"','- 扣款[消费]','主机名:"&request.Form("srv_name")&" 开通:1个月',"&AllMonery&","&MemberInfo_B(2)&",'"&shijian&"',1)") '存入财务记录


  '第三个  conn.Execute

  conn.Execute("insert into user_server(member_user,server_Name,server_price,srv_name,server_ip,server_room,server_cpu,server_memory,server_disk,server_bandwidth,user_beizhu,adm_beizhu,start_date,end_date) values('"&trim(request.form("member_user"))&"','"&trim(request.form("server_name"))&"',"&trim(request.form("server_price"))&",'"&trim(request.form("srv_name"))&"','"&trim(request.form("server_ip"))&"','"&trim(request.form("server_room"))&"','"&trim(request.Form("server_cpu"))&"','"&trim(request.form("server_memory"))&"','"&trim(request.form("server_disk"))&"','"&trim(request.form("server_bandwidth"))&"','"&trim(request.form("user_beizhu"))&"','"&trim(request.form("adm_beizhu"))&"','"&Sdate&"','"&edate&"')")
  Call Infobox("操作成功","user_server.asp")
搜索更多相关主题的帖子: shijian 浏览器 money where 会员 
2014-05-11 21:30



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-431387-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015143 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved