Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Bug Reports (Open)
 function getMemberID
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

redbrad0
Advanced Member

USA
3725 Posts

Posted - 08 January 2002 :  00:34:21  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
I dont know if this is a bug but i think its something that should be fixed. This is the way the function looks...


function getMemberID(fUser_Name)
'## Forum_SQL
strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID "
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " WHERE " & strDBNTSQLName & " = '" & ChkString(fUser_Name, "SQLString") & "'"

Set rsGetMemberID = Server.CreateObject("ADODB.Recordset")
rsGetMemberID.open strSql, my_Conn

getMemberID = rsGetMemberID("MEMBER_ID")

rsGetMemberID.close
set rsGetMemberID = nothing

end function


I think this should have a little error checking like so..


function getMemberID(fUser_Name)
'## Forum_SQL
strSql = "SELECT " & strMemberTablePrefix & "MEMBERS.MEMBER_ID "
strSql = strSql & " FROM " & strMemberTablePrefix & "MEMBERS "
strSql = strSql & " WHERE " & strDBNTSQLName & " = '" & ChkString(fUser_Name, "SQLString") & "'"

Set rsGetMemberID = Server.CreateObject("ADODB.Recordset")
rsGetMemberID.open strSql, my_Conn

if rsGetMemberID.eof or rsGetMemberID.bof then
Call ClearCookies()
getMemberID = "0"
else

getMemberID = rsGetMemberID("MEMBER_ID")
end if

rsGetMemberID.close
set rsGetMemberID = nothing

end function


The reason I am saying this is because a forum I am working on my member name got deleted and now i can not access the forums because im getting this error message..
ADODB.Field error '800a0bcd'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

/inc_functions.asp, line 841


what do you guys think?

Brad
Web Hosting with SQL Server @ $24.95 per month
Snitz Mod Archive



Edited by - redbrad0 on 08 January 2002 00:46:30

Edited by - redbrad0 on 08 January 2002 00:49:15

Nathan
Help Moderator

USA
7664 Posts

Posted - 08 January 2002 :  01:12:17  Show Profile  Visit Nathan's Homepage
This same problem has come up in the help forums before.

 Nathan Bales - Romans 15:13
---------------------------------

Snitz Exchange | Mod Resource
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 08 January 2002 :  02:54:38  Show Profile
There is another function GetMemberNumber and is same as GetMemberId. I think only one of these is required.

www.forumSquare.com - GauravBhabu - It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Go to Top of Page

redbrad0
Advanced Member

USA
3725 Posts

Posted - 08 January 2002 :  08:14:47  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
well i put in this fix that is in red on the forum i was working for when i got the error, and it worked perfectly. no other errors, and it logged me out right.

Brad
Web Hosting with SQL Server @ $24.95 per month
Snitz Mod Archive

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000 Version 3.4.07