Home > Backend Development > PHP Tutorial > Tutorial by tim_perdue_PHP, the original author of a function library for website user management

Tutorial by tim_perdue_PHP, the original author of a function library for website user management

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 17:24:41
Original
745 people have browsed it

0) { $feedback .= ERROR - USER NAME EXISTS ; return false; } else { //create a new hash to insert into the db and the confirmation email $hash=md5($email.$hidden_hash_var); $sql="INSERT INTO user (user_name,real_name,password,email,remote_addr,confirm_hash,is_confirmed) ". "VALUES ($user_name,$real_name,". md5($password1) .",$email,$GLOBALS[REMOTE_ADDR],$hash,0)"; $result=db_query($sql); if (!$result) { $feedback .= ERROR - .db_error(); return false; } else { //send the confirm email user_send_confirm_email($email,$hash); $feedback .= Successfully Registered. You Should Have a Confirmation Email Waiting ; return true; } } }

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/532120.htmlTechArticle0) { $feedback .= ERROR - USER NAME EXISTS ; return false; } else { //create a new hash to insert into the db and the confirmation email $hash=md5($email.$hidden_hash_var); $sql=IN...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Why does it still jump after returning false?
From 1970-01-01 08:00:00
0
0
0
Optimize table indexes in MySQL
From 1970-01-01 08:00:00
0
0
0
Why can't I install it?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template