Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm creating a multi user application. How do i create user for many types of user to use? i mean like, create user in phpMyAdmin or in a user table? Arrr...I don't know how to explain.
Posted

If I got you, you need to create a table containing user descriptions (e.g. details, privileges).
You may do that in both ways, use the method that best fits your needs. For instance, if you need a custom interface then make a web application in order to modify it, otherwise phpMyAdmin is a viable option.
 
Share this answer
 
Comments
Maciej Los 16-Apr-13 3:35am    
+5
CPallini 16-Apr-13 3:48am    
Than you.
Valentine1993 16-Apr-13 4:05am    
Oh. You know what I mean. Thanks. Then what is the purpose of creating user in a database(Not table)? I mean in phpMyAdmin.
CPallini 16-Apr-13 4:31am    
"Then what is the purpose of creating user in a database(Not table)?"
That's has nothing to do with phpMyAdmin (or at least the latter is just a tool for doing it). MySQL (like many database engines) is multi-users. Every user may have different privileges (e.g. access to a limited set of databases, ...).
Valentine1993 16-Apr-13 5:15am    
oh ok. thank you!
Probably, you're talking about role-based access control[^]. Please, follow the link.
Design

Within an organization, roles are created for various job functions. The permissions to perform certain operations are assigned to specific roles. Members of staff (or other system users) are assigned particular roles, and through those role assignments acquire the computer permissions to perform particular computer-system functions. Since users are not assigned permissions directly, but only acquire them through their role (or roles), management of individual user rights becomes a matter of simply assigning appropriate roles to the user's account; this simplifies common operations, such as adding a user, or changing a user's department.


As Carlo Pallini had mentioned the best way to create multi-level-users application is to create table and there define privileges for each user. Depending on defined role, user can access to specific UI's (user interface) controls, methods, etc.
 
Share this answer
 
Comments
CPallini 16-Apr-13 3:48am    
My 5.
Maciej Los 16-Apr-13 3:49am    
Thank you, Carlo ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900