asp的代码运行问题

来源:百度知道 编辑:UC知道 时间:2024/06/14 20:17:41
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<%
sub showpage(objrs,no)
objRS.absoluteposition=no
for j=0 to objrs.fields.count-1
data="<tr><td>" & objrs.fields(j).name
data=data & "<td>" & objrs.fields(j).value
response.write data
next
end sub
set conn=s

rs.open"职工工资",conn,1,2,2
有问题
应该是sql="select * from 表 where 条件"
rs.open sql,conn,1,3

是不是冒号之类的打错了,我经常发生这样的情况....