<% Dim num,t1,t2,t3 num=Request.Form("AreaNum") t1=Request.Form("Time1") t2=Request.Form("Time2") t3=Request.Form("Time3") %> <% Set cn=Server.CreateObject("ADODB.Connection") cn.ConnectionString="DSN=weisheng;UID=SA;PWD=transit" cn.open CommandText="INSERT card (AreaNum,Time1,Time2,Time3) VALUES('num','t1','t2','t3')" RecordsAffected=0 cn.Execute CommandText,RecordsAffected,AdCmdText cn.Close Set cn=Nothing %>
为什么数据库连不上呢?