Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Adding user fields + Register function + Admin area SLOW


Reply

18 Posts   4994 Views

Avatar
Piklets

17 October 2008 at 4:11pm Community Member, 36 Posts

At the moment I'm not quite sure how the relations with the databases work. (bumping)

For my system I need three parts to it.

First part - normal user, normal privileges:
The normal user submits a form telling more about themselves. Each normal user can only have one table row. If they submit it twice it updates the previous submission.

Second part - stage two user, a bit more privileges:
The stage two users give their opinion about a single user, and they can submit only one submission per user. If they submit twice on the same user it just updates the row submitted before.

Third part - stage three user, same privileges as stage two:
The stage three users are another group to give submissions about a user. Same as stage two, they can only submit one for each user, updating if they submit twice.

Avatar
Piklets

17 October 2008 at 5:31pm (Last edited: 17 October 2008 5:32pm), Community Member, 36 Posts

Got it working! There's always more than one way to do things!

I made it check for existance first before updating the field.
If it existed, then it updated.

Woot!

If anyone wants any sort of thing like this, ask and I can show you how.