close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Advice needed re: who registered Who?

Thread began 1/04/2012 11:24 am by Jon Cunningham | Last modified 1/04/2012 12:59 pm by Jason Byrnes | 552 views | 1 replies |

Jon CunninghamBeta Tester

Advice needed re: who registered Who?

Hi Guys,

Please could you tell me if this is possible and maybe some directions on completing this.

In my database I have two administrators that will register new users. In this example let's say the administrators are Company A and Company B respectfully.

When Company A registers a new user a prefix of say CompA is written to the users ID (CompA101) and CompB would become (CompB102) I understand that the numbers will be incremental only the prefix will change depending on who registers the user. I would be looking to have two admin registration forms, one for Company A and one for Company B.

When a new user logs in I can then do a look up and display details for Company A or B respectfully.

Or would I need to create a new data base table such as instead of adding a prefix

CompanyID
AdminUserID
AdminCompanyUserID

And then make a many to many relationship instead of writing a prefix to the users ID?

Thank you in advance for your time in this matter.

Kind regards

Jonathon

Sign in to reply to this post

Jason ByrnesWebAssist

you will need to have a new column in the users table to mark the user as being registered by CompanyA or CompanyB. Store the corresponding userID for CompanyA or CompanyB in this new column.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...