浏览主站 | 站长合租 | 新闻资讯 | 站长学院 | 站长盈利 | HTML教程 | 网址导航 | 站长周刊 | 会员投稿 | 滚动新闻 | RSS
发新话题
打印

[代码问题] 代码高手来看,怎么写更新时间.

代码高手来看,怎么写更新时间.

下面这段代码是完整的删除代码,里面有四个表,分别是"hack" "hire" "sell" "buy".现在要它做出判断,如果我点击的是"更新
"它怎么把与之相对应的四个表里面的"data"(时间字段),字段更新为现在的时间.
<%
dim checkbox,strSql
checkbox=request("checkbox")
if checkbox="" then %>
<SCRIPT LANGUAGE=vbscript>
<!--
msgbox("您未选择要更新或删除的记录!")
Sub window_onload
window.history.back
End Sub
-->
</SCRIPT>
<% response.end
  end if
checkbox=replace(checkbox," ","")
checkbox=replace(checkbox,","," or id=")
if session("house")="hack" then
   strSql="delete from [hack] where id=" & checkbox
end if
if session("house")="hire" then
   strSql="delete from [hire] where id=" & checkbox
end if
if session("house")="sell" then
   strSql="delete from [sell] where id=" & checkbox
end if
if session("house")="buy" then
   strSql="delete from [buy] where id=" & checkbox
end if
conn.execute(strSql)
        response.redirect "view_house.asp?house=" & session("house")
%>


感谢各位大侠帮忙!
新都房地产门户-新都房地产信息网|http://www.xdhouse.net

TOP

别告诉我这里没有高手
新都房地产门户-新都房地产信息网|http://www.xdhouse.net

TOP

大侠们都来看看
新都房地产门户-新都房地产信息网|http://www.xdhouse.net

TOP

发新话题