asp 商城 日期的语法错误

来源:百度知道 编辑:UC知道 时间:2024/05/29 18:36:28
前台显示Microsoft JET Database Engine '80040e07'

日期的语法错误 在查询表达式 'datestart<#2007-12-29 9:41:20 丹丹# and dateend>#2007-12-29 9:41:20 丹丹# and sumstart<3 and (sumend>3 or uplimit=1)' 中。

\wwwroot\cart1.asp, line 175

后台的源码

获得积分:<font color="#FF0000"><%=sums1%></font> 分</td>
</tr>
<tr bgcolor="#FFFFFF" height="20">
<td colspan="9"><%

请高手帮忙解决一下。谢谢
if request.Cookies("shopnt")("username")<>"" and request.Cookies("shopnt")("username")<>"游客" then

set rs=server.CreateObject("adodb.recordset")
sql="select * from huodong where datestart<" & "#" & now()& "# and

你在你的SQL 语句下另起一行 reqonse.write 你的SQL 语句,然后在数据库里运行一下。运行不了的话,重新写你的SQL.

我是低手。看不懂

严重的sql语句问题!

把你的时间用“'”(单引号)引起来