当前位置:Gxlcms > PHP教程 > phpmysql用户注册登陆代码_PHP教程

phpmysql用户注册登陆代码_PHP教程

时间:2021-07-01 10:21:17 帮助过:4人阅读

php mysql用户注册登陆代码这是一款利用php 与mysql数据库实现的用户注册与登录代码哦,功能也是比较简单实用的用户注册程序哦。同时也加了用户登录时验证码程序,这样做就安全了很多哦。

php教程 mysql教程用户注册登陆代码
这是一款利用php 与mysql数据库教程实现的用户注册与登录代码哦,功能也是比较简单实用的用户注册程序哦。同时也加了用户登录时验证码程序,这样做就安全了很多哦。
*/
?>





在后台增加用户

require_once("config.php");
if(isset($_post["submit2"])){
mysql_select_db('a0807000225'); //这个是数据库表
$author=$_session["user_name"];
define(all_ps教程,"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"";
}
}
}

?>


www.bkjia.comtruehttp://www.bkjia.com/PHPjc/444870.htmlTechArticlephp mysql用户注册登陆代码这是一款利用php 与mysql数据库实现的用户注册与登录代码哦,功能也是比较简单实用的用户注册程序哦。同时也加...

人气教程排行