PHP mysql User registration login Code _php Tutorial

Source: Internet
Author: User
Tags mysql tutorial php and mysql php mysql
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 ...

  • 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.