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

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Duplicate Entry Key for Hidden Room
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

trevally
Starting Member

46 Posts

Posted - 19 September 2006 :  10:46:52  Show Profile  Visit trevally's Homepage
I created a second "Allowed Member List(Hidden Room)" and when I tried to add in members I received the following error message:

There has been a problem!

Duplicate entry '1668' for key 1

Go back to correct the problem.


I only encounter this message if I add in members who were previously from another Hidden Room. If I add in members who were never in a Hidden Room before, then it is okay.

Any ideas on overcoming this?

Oh, yes I am using MySQL for my database.

Regards,
Vincent

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 19 September 2006 :  11:39:30  Show Profile  Visit HuwR's Homepage
maybe a problem with your allowed_member table, any idea if the same thing happens if yoou try to manually add a record to the table ?
Go to Top of Page

trevally
Starting Member

46 Posts

Posted - 19 September 2006 :  11:42:28  Show Profile  Visit trevally's Homepage
To be honest, I am not familiar with MySQL. Do you mean that I manually insert records via the PhpMyadmin?

Cheers,
Vincent
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 19 September 2006 :  12:16:23  Show Profile  Visit HuwR's Homepage
quote:
Do you mean that I manually insert records via the PhpMyadmin
yes, just to see if it works, if it doesn't it is a problem with the table, if it does then it s a problem with the code
Go to Top of Page

trevally
Starting Member

46 Posts

Posted - 19 September 2006 :  21:36:49  Show Profile  Visit trevally's Homepage
Ok instead this is what I did.

I removed the original user from the first hidden room and then placed them to the new hidden room, IT WORKS!

So it looks like a forumer cannot be in 2 hidden rooms at the same time.

Regards,
Vincent
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 20 September 2006 :  03:47:51  Show Profile  Visit HuwR's Homepage
well, a member can be in more than one hidden room so we still don't know whether it is the code or your db that is the problem
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 20 September 2006 :  04:01:50  Show Profile  Visit HuwR's Homepage
I would suggest that you check the forum_allowed_members table in PhpMyAdmin and check that the primary key is set correctly, it should be set so that both the member_id and forum_id are part of the primary key, if it is set so that only the member_id is the primary key, then you will get the problem you describe.

If you are unable or not sure how to do this, you could email myself or one of the other Admins the login details to access your database and we will check it for you.
Go to Top of Page

trevally
Starting Member

46 Posts

Posted - 20 September 2006 :  12:22:19  Show Profile  Visit trevally's Homepage
HuwR,

Thanks for your advice. Lemme have a shot at it via the PhpMyadmin first.

Will update you.

Cheers,
Vincent
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 20 September 2006 :  12:47:05  Show Profile  Visit HuwR's Homepage
Ok, let us know if you still need any assistance
Go to Top of Page

trevally
Starting Member

46 Posts

Posted - 23 September 2006 :  04:52:16  Show Profile  Visit trevally's Homepage
Dear HuwR,

I entered my PHPmyAdmin and checked the forum_allowed_members table as advised. Yes, you're right. Only the Member_ID is the primary key.

However when I check on the Forum_ID to set the primary key also, it asked whether do I want to drop the former key? Hence, I am unable to set both fields as Primary Key as suggested.

Can we set 2 primary keys at once?

Regards,
Vincent
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 23 September 2006 :  05:03:00  Show Profile  Visit HuwR's Homepage
you should drop the existing primary key and then set it so that BOTH columns are the primary key, you can't have two primary keys, but a primary key CAN be set on more than one column
Go to Top of Page

trevally
Starting Member

46 Posts

Posted - 23 September 2006 :  05:29:59  Show Profile  Visit trevally's Homepage
Got it! Thanks all working fine! You're awesome!

Vincent
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 23 September 2006 :  05:34:42  Show Profile  Visit HuwR's Homepage
you're welcome
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.41 seconds. Powered By: Snitz Forums 2000 Version 3.4.07