Logon to the PHP + MYSQL membership system is a permission judgment

Source: Internet
Author: User
Three pages are included. cogfig pages are contained pages, denglu pages are responsible for submission, session assignment, and so on. denglu_link pages are responsible for permission judgment demonstration. In this example, the test database and user_list table already exist, the table contains... three pages are included. cogfig pages are contained pages, denglu pages are responsible for submission, session assignment, and so on. denglu_link pages are responsible for permission judgment demonstration. In this example, the test database and user_list table already exist, the table contains four fields: uid, m_id, username, and password. the password field has been encrypted by md5 in the form of md5 ("user password ". ALL_PS), that is, the password entered by the user plus a constant for judgment.

First, let's look at the configuration file. the code is as follows:

 

On the PHP logon page, the code is as follows:

 
 
denglu_link

PHP permission judgment page, the code is as follows:

 


Article address:

Reprint at will ^ please include the address of this article!

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.