Mas*Mind
Sun 16th Jul '00, 11:41am
I've noticed that the databasedesign is very inefficient...For example the usertable: Every time you make a new usergroup the user is added again with all his info...this creates alot of overhead. You can better make a foreignkeytable like this:
-------------------
USER
---+------+--------
ID | Name | etc...
---+------+--------
-------------------
USER_GROUP
-------+-----------
UserID | GroupID
-------+-----------
-------------------
GROUP
---+------+--------
ID | Name | etc...
---+------+--------
This way you only have one record per user maximum and the relationships between groups and users are stored in the USER_GROUP table...
I also couldn't login anymore into the control-panel because I made myself a moderator while I was also an administrator...somehow the script 'thought' I was logging in as a moderator...
-------------------
USER
---+------+--------
ID | Name | etc...
---+------+--------
-------------------
USER_GROUP
-------+-----------
UserID | GroupID
-------+-----------
-------------------
GROUP
---+------+--------
ID | Name | etc...
---+------+--------
This way you only have one record per user maximum and the relationships between groups and users are stored in the USER_GROUP table...
I also couldn't login anymore into the control-panel because I made myself a moderator while I was also an administrator...somehow the script 'thought' I was logging in as a moderator...