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)
 (BUG?+Workaround/Fix) Adding Members to Prv Frms
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kotbh
Starting Member

5 Posts

Posted - 21 December 2001 :  23:02:09  Show Profile
When Adding Members to Selected member list My PC (Ie6.00.2600.00) Sometimes adds a "null" user in the list.

Save Changes results in "error in INSERT INTO" statement and doesn't add all users:

in post_info.asp Find:


sub newForumMembers(fForumID)
on error resume next
if Request.Form("AuthUsers") = "" then
exit Sub
end if
Users = split(Request.Form("AuthUsers"),",")
for count = Lbound(Users) to Ubound(Users)
strSql = "INSERT INTO " & strTablePrefix & "ALLOWED_MEMBERS ("
strSql = strSql & " MEMBER_ID, FORUM_ID) VALUES ( "& Users(count) & ", " & fForumID & ")"

my_conn.execute (strSql)
if err.number <> 0 then
Go_REsult err.description, 0
end if
next

end sub


and modify to look like this:


sub newForumMembers(fForumID)
on error resume next
if Request.Form("AuthUsers") = "" then
exit Sub
end if
Users = split(Request.Form("AuthUsers"),",")
for count = Lbound(Users) to Ubound(Users)
if Users(Count) <> " " then
strSql = "INSERT INTO " & strTablePrefix & "ALLOWED_MEMBERS ("
strSql = strSql & " MEMBER_ID, FORUM_ID) VALUES ( "& Users(count) & ", " & fForumID & ")"

my_conn.execute (strSql)
if err.number <> 0 then
Go_REsult err.description, 0
end if
end if
next
end sub


what this does, if it finds a empty "MEMBER_ID" it does not attempt to insert into the database.


oops sorry-fixed

Edited by - kotbh on 22 December 2001 01:12:07

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 22 December 2001 :  00:52:27  Show Profile  Visit HuwR's Homepage
both those bits of code are the same ?

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 22 December 2001 :  00:56:43  Show Profile
They are also the same as what is currently in the post_info.asp file.
Go to Top of Page

kotbh
Starting Member

5 Posts

Posted - 22 December 2001 :  01:12:57  Show Profile
posted fixed.. sorry

ctrl+v wrong file ;o}

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