在推荐注册文件里面只可以填用户名和密码,我想增加个填qq的,但qq不存储到表里面,请问怎么回事?
后台有添加用户功能,里面有个可以填qq的,后台填qq可以存储到数据库。
推广链接文件代码:  
          	          			用户名
			密 码
			确认密码
       联系qq
          			验证码time?> title=看不清楚嘛,点击切换一张图片吧 onclick=this.src='/index.php/user/vcode/'+(new date()).gettime()/>
调用的js代码:  
  //{{{推广注册function registerbeforsubmit(){	var type=$('[name=type]:checked',this).val();	//console.log($('[name=type]:checked',this));	if(!this.username.value) throw('没有输入用户名');	if(!/^\w{4,16}$/.test(this.username.value)) throw('用户名由4到16位的字母、数字及下划线组成');	if(!this.password.value) throw('请输入密码');	if(this.password.value.lengthdisplay('team/register.php');		}else{			include_once $_server['document_root'].'/lib/classes/xxtea.class';			$userxxx=str_replace(array('-','*',''), array('+','/','='), $userxxx);			$userxxx=base64_decode($userxxx);			$uid=xxtea::decrypt($userxxx, $this->urlpasswordkey);						if(!$this->getrow(select uid from {$this->prename}members where uid=?,$uid)){				//throw new exception('链接失效!');				$this->display('team/register.php');			}else{				$this->display('team/register.php',0,$uid);			}		}	}	public final function registered(){		if(strtolower($_post['vcode'])!=$_session[$this->vcodesessionname]){			throw new exception('验证码不正确。');		}		if(!$_post['parentid']) throw new exception('链接错误');		$para=array(			'username'=>$_post['username'],			'password'=>md5($_post['password']),			'parentid'=>$_post['parentid'],			'parentid'=>$_post['qq'],			'parents'=>$this->getvalue(select parents from {$this->prename}members where uid=?,$_post['parentid']),			'fandian'=>0,			'fandianbdw'=>0,			'regip'=>$this->ip(true),			'regtime'=>$this->time			);				if(!$para['nickname']) $para['nickname']=$para['username'];		if(!$para['name']) $para['name']=$para['username'];				$this->begintransaction();		try{			$sql=select username from {$this->prename}members where username=?;			if($this->getvalue($sql, $para['username'])) throw new exception('用户“'.$para['username'].'”已经存在');			if($this->insertrow($this->prename .'members', $para)){				$id=$this->lastinsertid();				$sql=update {$this->prename}members set parents=concat(parents, ',', $id) where `uid`=$id;				$this->update($sql);								$this->commit();				return '注册成功';			}else{				throw new exception('注册失败');			}					}catch(exception $e){			$this->rollback();			throw $e;		}	}}
是这段php代码吗?
数据库有这个值的,因为在后台可以添加qq,推广注册链接不可以。 
   推广注册的js代码,是没有粘贴完整,还是功能没有全部实现? 
   'parentid'=>$_post['parentid'],            'qq'=>$_post['qq'],
推广注册的js代码,是没有粘贴完整,还是功能没有全部实现?  
 是不往表里写数据 
   'parentid'=>$_post['parentid'],            'qq'=>$_post['qq'],
没看明白,能解释下吗? 
   'parentid'=>$_post['parentid'],'parentid'=>$_post['qq'],
这里写错了,楼上正解 
   'parentid'=>$_post['parentid'],            'qq'=>$_post['qq'],
谢了,是这里写错了。
'parentid'=>$_post['parentid'],            'qq'=>$_post['qq'],
谢了,是这里写错了。
解决了就把结贴吧,不然总刷出来
   
 
   