Questions about BBS moderator authorization-php Tutorial

Source: Internet
Author: User
I would like to ask you some basic questions about BBS moderator Authorization. the registered user table (mysql database) of BBS forum contains each user name and password; when authorizing a user as the moderator, does & nbsp; need to be directed to mysql. user table (this table is not a registered user table) to save the user name and password? ------ Solution -------- questions about BBS moderator authorization
I would like to ask you a basic question. The BBS Forum's registered user table (mysql database) contains each user name and password. when authorizing a user as the moderator, do you need to contact mysql. user table (this table is not a registered user table) to save the user name and password?


------ Solution --------------------
Master = 1 or 2 or 3 or 4...

This depends on how your membership management system is designed. for example, the above 1 can be Administrator 2 can be vice administrator...

If you still need to extend other permission restrictions, you can add detailed permission functions to a separate table.
------ Solution --------------------
Reference:
By default, a root user is installed in mysql, which is saved in the mysql. user table. if a new user is created, it is saved in the mysql. user table.

There is a registered user table in BBS. if you grant permissions to a user in the registered user table, do you need to create related information for this user from the mysql. user table? For example, (grant delete, update on a database table to user name @... identifie ......


I didn't pay attention to the fact that you asked mysql users...

No
------ Solution --------------------
You can design your own table (isadmin field), where permissions are required, and the program is controlled.
------ Solution --------------------
No!

Mysql. user is set for the user who saves the database connection

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.