时时商务社区

标题: UCenter 批量添加用户的php代码 [打印本页]

作者: 阿情    时间: 2018-2-14 08:28

            [U]复制代码[/U] 代码如下:








fetch_array($_SGLOBAL['db']->query($sql_username));
//如果不存在重名的用户
if($username != $s_name['username']){//如果不存在
$_SGLOBAL['db']->query("INSERT INTO uc_members (username, password,regdate,salt)
VALUES ('$username', '$pwd','".mktime()."','$salt')");
$sql = "select uid from uc_members where username='".$username."'";
$_SGLOBAL['db']->query($sql);
$uuu = $_SGLOBAL['db']->fetch_array($_SGLOBAL['db']->query($sql));
echo $uuu['uid'];
$_SGLOBAL['db']->query("INSERT INTO uc_memberfields (uid)
VALUES ('".$uuu['uid']."')");
echo $username."success
";
}else{
echo "您要添加的用户已添加!";
}
}
//作者:www.tongqiong.com
?>


            
            
您可能感兴趣的文章:
  • php完全过滤HTML,JS,CSS等标签
  • UCenter Home二次开发指南
  • php将会员数据导入到ucenter的代码
  • UCenter中的一个可逆加密函数authcode函数代码
  • PHP开发不能违背的安全规则 过滤用户输入
  • destoon整合UCenter图文教程
  • 简单分析ucenter 会员同步登录通信原理
  • ucenter通信原理分析
  • PHP中字符安全过滤函数使用小结
  • thinkphp3.x中变量的获取和过滤方法详解
  • php通过两层过滤获取留言内容的方法
  • ucenter中词语过滤原理分析
            




    欢迎光临 时时商务社区 (http://bbs.4435.cn/) Powered by Discuz! X3.2