Jump to content

membership or ....

- - - - -

  • Please log in to reply
4 replies to this topic

#1
zkazemi

zkazemi

    Newbie

  • Members
  • Pip
  • 7 posts
Hello to all friends
I write a program for Web-based e-Learning.
In this system there are three types of user: administrator, student, professor
I do not know for now identify the three classes of membership. Net or do I use the sql for each table created each time the user types information into tables that do recognize

Please tell me what a way to identify users is appropriate.
My English is not good. Excuse me please:closedeyes::closedeyes:
Tanks alot

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,822 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
You can have three tables if you want, but all of them are a "User" in the end and will need a common table to store login credentials and indicate the type of user (1,2, or 3 in user-type, for example).
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
zkazemi

zkazemi

    Newbie

  • Members
  • Pip
  • 7 posts

WingedPanther said:

You can have three tables if you want, but all of them are a "User" in the end and will need a common table to store login credentials and indicate the type of user (1,2, or 3 in user-type, for example).

Tanks alot WingedPanther:thumbup:

#4
Guest_Jordan_*

Guest_Jordan_*
  • Guests
You can use an ENUM column to indicate users:

CREATE TABLE users (
    type ENUM('administrator', 'student', 'professor')
);

MySQL :: MySQL 5.0 Reference Manual :: 10.4.4 The ENUM Type

#5
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts
well u have a ready to use login controls, try dropping the loginbox and other controls from your toolbox then configure them to use the sql membership also make Roles to for each person ie admin ,student and the professor




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users