我有一个网站上所有用户使用的登录页面。 但是,一旦他们登录,他们会转到不同的页面。
用户当前存储在数据库中的不同表中,我需要检查以查看应该导航到哪个页面。
这是否意味着我应该将所有这些用户添加到单个表中并指定用户类型?
我组织事情的最佳方式是什么?
I have one login page used by all users on the site. However, once they login, they go to different pages.
The users are currently stored in different tables in the database and I need to check to see which page I should navigate to.
Does this mean that I should add all these users to a single table and specify the kind of user?
What's the best way for me to organize things?
最满意答案
最好将所有用户放在一个表中,这样可以使维护更容易。 您可以让登录脚本读取用户类型,并将其指向正确的主页。
It would probably be best to keep all your users in one table, it will make things easier to maintain. You can have the login script read the user type, and direct them to the correct homepage.
更多推荐
发布评论