Here is my error:
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/ta/test/calendar/admin/login.asp, line 34
Here is my code:
<!--#include file="dsn.asp"-->
<%
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection"
objConn.open dsn
If Session("blnValidUser" = True and Session("Admin_ID" = "" Then
Dim rsPersonIDCheck
Set rsPersonIDCheck = Server.CreateObject("ADODB.Recordset"
Dim strSQL
strSQL = "SELECT * FROM Settings WHERE Admin_ID = '" & Session("Admin_ID" & "';"
rsPersonIDCheck.Open strSQL, objConn
If rsPersonIDCheck.EOF Then
Session("blnValidUser" = False
Else
Session("Admin_ID" = rsPersonIDCheck("Admin_ID"
End If
rsPersonIDCheck.Close
Set rsPersonIDCheck = Nothing
End If
Dim strID, strPassword
strID = Request("Admin_ID"
strPassword = Request("Password"
Dim rsUsers
set rsUsers = Server.CreateObject("ADODB.Recordset"
strSQL = "SELECT * FROM Settings WHERE Admin_ID = '" & strID & "';"
rsUsers.Open strSQL, objConn
If rsUsers.EOF Then
Session("Admin_ID" = Request("Admin_ID"
Response.Redirect "default.asp?SecondTry=True"
Else
While Not rsUsers.EOF
If UCase(rsUsers("Admin_Pass") = UCase(strPassword) Then
Session("Admin_ID" = rsUsers("Admin_ID"
Session("isLoggedIn" = True
Session("blnValidUser" = True
Response.Redirect "main.asp"
Else
rsUsers.MoveNext
End If
Wend
Session("Admin_ID" = Request("Admin_ID"
Response.Redirect "default.asp?SecondTry=True&WrongPW=True"
End If
%>
<!--#include file="dsn2.asp"-->
Molly
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
/ta/test/calendar/admin/login.asp, line 34
Here is my code:
<!--#include file="dsn.asp"-->
<%
Dim objConn
Set objConn = Server.CreateObject("ADODB.Connection"
objConn.open dsn
If Session("blnValidUser" = True and Session("Admin_ID" = "" Then
Dim rsPersonIDCheck
Set rsPersonIDCheck = Server.CreateObject("ADODB.Recordset"
Dim strSQL
strSQL = "SELECT * FROM Settings WHERE Admin_ID = '" & Session("Admin_ID" & "';"
rsPersonIDCheck.Open strSQL, objConn
If rsPersonIDCheck.EOF Then
Session("blnValidUser" = False
Else
Session("Admin_ID" = rsPersonIDCheck("Admin_ID"
End If
rsPersonIDCheck.Close
Set rsPersonIDCheck = Nothing
End If
Dim strID, strPassword
strID = Request("Admin_ID"
strPassword = Request("Password"
Dim rsUsers
set rsUsers = Server.CreateObject("ADODB.Recordset"
strSQL = "SELECT * FROM Settings WHERE Admin_ID = '" & strID & "';"
rsUsers.Open strSQL, objConn
If rsUsers.EOF Then
Session("Admin_ID" = Request("Admin_ID"
Response.Redirect "default.asp?SecondTry=True"
Else
While Not rsUsers.EOF
If UCase(rsUsers("Admin_Pass") = UCase(strPassword) Then
Session("Admin_ID" = rsUsers("Admin_ID"
Session("isLoggedIn" = True
Session("blnValidUser" = True
Response.Redirect "main.asp"
Else
rsUsers.MoveNext
End If
Wend
Session("Admin_ID" = Request("Admin_ID"
Response.Redirect "default.asp?SecondTry=True&WrongPW=True"
End If
%>
<!--#include file="dsn2.asp"-->
Molly