代码如下:
Set DBRS = Server.CreateObject("ADODB.Recordset")
sql = "select NUM from item where PID='"&PID&"' and [index]=31"
DBRS.open sql,uconn,1,1
'response.write sql
NUMBER = DBRS("NUM")
'response.write number
'response.end
If (NUMBER<100000000) Then
Response.Write "<script language='javascript'>" & chr(13)
Response.Write "alert('请确定此用户的金币大于10亿');" & Chr(13)
Response.Write"window.document.location.href='hcchange.asp';" & chr(13)
Response.Write "</script>" & Chr(13)
'response.write dbrs("number")
Response.End
Else
NUMBER=NUMBER-1000000000
SQL="update item set NUM='"&NUMBER&"' where PID='"&PID&"' and [index]=31"
uconn.execute (sql)
'response.write "else"
End If
这里我总是过不去Response.Write "alert('请确定此用户的金币大于10亿');" 但是,我在数据库里查了,这个用户的num值是大于10亿的,我用'response.write number也能返回出数据库里面的num值为19亿,大家帮我看看是不是这里
If (NUMBER<100000000) Then
Response.Write "<script language='javascript'>" & chr(13)
Response.Write "alert('请确定此用户的金币大于10亿');" & Chr(13)
Response.Write"window.document.location.href='hcchange.asp';" & chr(13)
Response.Write "</script>" & Chr(13)
'response.write dbrs("number")
Response.End
有问题!
在此先谢过!