sportypants
IS-IT--Management
Please can anybody tell me what is wrong with this code? It works fine on IIS5 but not on my hosts server?
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../Connections/AccesoneASP.asp" -->
<%
Dim rsAccount__strUsername
rsAccount__strUsername = "abc123"
if (Session("MM_Username" <> "" then rsAccount__strUsername = Session("MM_Username"
%>
<%
set rsAccount = Server.CreateObject("ADODB.Recordset"
rsAccount.ActiveConnection = MM_AccesoneASP_STRING
rsAccount.Source = "SELECT * FROM tblClients WHERE ClientUsername = '" + Replace(rsAccount__strUsername, "'", "''" + "'"
rsAccount.CursorType = 0
rsAccount.CursorLocation = 2
rsAccount.LockType = 3
rsAccount.Open()
rsAccount_numRows = 0
%>
<%
Session("ClientID" = rsAccount.Fields.Item("ClientID".Value
%>
<%
Response.Redirect "../default.asp"
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
<%
rsAccount.Close()
%>
I get an EOF or BOF error on my hosts server but it creates the Sess Var ok on my local machine?
Please help.....arrghhhhhh
TIA
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../Connections/AccesoneASP.asp" -->
<%
Dim rsAccount__strUsername
rsAccount__strUsername = "abc123"
if (Session("MM_Username" <> "" then rsAccount__strUsername = Session("MM_Username"
%>
<%
set rsAccount = Server.CreateObject("ADODB.Recordset"
rsAccount.ActiveConnection = MM_AccesoneASP_STRING
rsAccount.Source = "SELECT * FROM tblClients WHERE ClientUsername = '" + Replace(rsAccount__strUsername, "'", "''" + "'"
rsAccount.CursorType = 0
rsAccount.CursorLocation = 2
rsAccount.LockType = 3
rsAccount.Open()
rsAccount_numRows = 0
%>
<%
Session("ClientID" = rsAccount.Fields.Item("ClientID".Value
%>
<%
Response.Redirect "../default.asp"
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
</body>
</html>
<%
rsAccount.Close()
%>
I get an EOF or BOF error on my hosts server but it creates the Sess Var ok on my local machine?
Please help.....arrghhhhhh
TIA