Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Admin.PHP #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update Admin.PHP #43

wants to merge 1 commit into from

Conversation

Benny123-cell
Copy link
Contributor

@Benny123-cell Benny123-cell commented Jun 1, 2020

The first time we do it is on May 15th,we compare the data base and the source code named Admin.PHP,and change to these as follow(By checking the data establishment of the database, there is no problem in the fields of the mailbox. Therefore, we judge that the error is due to the verification of the mailbox. We added the verification of the mailbox to realize the login function of the mailbox):

Database codes:
CREATE TABLE users_table (
User_ID int(11) NOT NULL,
Email varchar(50) COLLATE utf8mb4_bin DEFAULT NULL,
Password varchar(50) CHARACTER SET utf8 DEFAULT NULL,
Full_Name varchar(50) CHARACTER SET utf8 DEFAULT NULL,
UserType varchar(50) COLLATE utf8mb4_bin DEFAULT NULL,
Student_ID varchar(500) COLLATE utf8mb4_bin DEFAULT NULL,
Passport_Number varchar(50) COLLATE utf8mb4_bin DEFAULT NULL,
Status varchar(30) COLLATE utf8mb4_bin NOT NULL DEFAULT 'Active'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;

Full_Name Email

Passport_Number / ID (Used as Intial Password)


User Type :
Lecturer
T/A

function check_email($email){

	if (preg_match('/^[\w\.-]+@([0-9a-zA-Z]+\.)?[0-9a-zA-Z]+\.[a-z]{2,3}$/',$email)){
			return true;
		}
	else{
		return false;
		}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant