PHP mysql User Registration Login Code This is a use of PHP and MySQL database implementation of user registration and login code Oh, the function is relatively simple and practical user registration program OH. At the same time also added a user login verification code program, so that it is a lot of security oh.
PHP tutorial MySQL Tutorial user Registration Login Code
This is a use of PHP and MySQL database tutorial implementation of user registration and login code Oh, the function is relatively simple and practical user registration program OH. At the same time also added a user login verification code program, so that it is a lot of security oh.
*/
?>
Add users in the background
Require_once ("config.php");
if (Isset ($_post["Submit2")) {
mysql_select_db (' a0807000225 '); This is a database table.
$author =$_session["user_name"];
Define (all_ps tutorial, "Jinquan");
echo $username =$_post["username"];
echo $password =md5 ($password =$_post["password"].all_ps);
echo "
";
if ($username) {
if ($password) {
$str = "INSERT INTO ' dx_user_list ' (' uid ', ' m_id ', ' username ', ' password ') VALUES (ASCII (NULL), ' 1 ', ' $username ', ' $password '); ";
$rs =mysql_query ($str, $conn);
Mysql_close ($conn);
}
if ($rs) {
echo "";
}else{
echo "";
}
}
}
?>
http://www.bkjia.com/PHPjc/444870.html www.bkjia.com true http://www.bkjia.com/PHPjc/444870.html techarticle PHP mysql User registration Login Code This is a use of PHP and MySQL database implementation of user registration and login code Oh, the function is relatively simple and practical user registration program OH. Also add ...