用command对象写入数据库出问题????急
ADODB.Command (0x800A0BB9)
参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。
/hp/t.asp, 第 41 行
conn.asp
<%
dim conn,condb
condb = "DSN=bbs "
set conn = Server.CreateObject( "ADODB.Connection ")
conn.open condb
%>
t.asp
<!--include file= "conn.asp "-->
<%
...
set cmd = Server.CreateObject( "ADODB.Command ")
cmd.ActiveConnection =conn //41行
cmd.CommandText = "select count(*) from user_T where username= ' "&Request.Form( "username ")& " ' "
set rs = cmd.Execute
...
%>
help me!!!!!在线等.........
------解决方案-------------------- <!--include file= "conn.asp "-->
改成:
<!--#include file= "conn.asp "-->