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

 All Forums
 Community Forums
 Suggest forum.snitz.com Content
 inc_functions.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

jessica
New Member

USA
58 Posts

Posted - 04 May 2002 :  10:59:35  Show Profile  Visit jessica's Homepage  Send jessica an AOL message  Send jessica a Yahoo! Message
I believe this is the proper place to post this, if there is a better place, please let me know.

I noticed in the inc_funcions.asp


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 noticed that there is no error checking for EOF or BOF.
Although that is fine, here is something that should be considered:


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.BOF or rsGetMemberID.EOF then
strLoginStatus = 0
else
getMemberID = rsGetMemberID("MEMBER_ID")
rsGetMemberID.close
end if
set rsGetMemberID = nothing

end function


That may be a little more user friendly with some of the mod updates.

(Web Zone Complete)
Programming and graphic resource center

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 04 May 2002 :  12:02:11  Show Profile  Visit HuwR's Homepage
The function is no longer used by the forums, getMemberNumber is used instead.

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.14 seconds. Powered By: Snitz Forums 2000 Version 3.4.07