I was able to solve the other errors but when I register he gives this error:
Notice: Undefined variable: refid in /home/b52uyisu/public_html/register.php on line 70
$addaccount = mysql_query("INSERT INTO members VALUES('','$username','$password','$email','$ppemail','$ppemail','$refid','0','0.00','0.00','0.00','$name','$address','$city','$zipcode','$telephone','$country','$date','$uip','$uip','0','0.00','no','./avatar.png','0','0','0','0','0','0','0','0','0','0','0','0','0','0')");
Notice: Undefined variable: refid in /home/b52uyisu/public_html/register.php on line 76
if($refid != '') {
$qqq = mysql_query("UPDATE members SET totalrefs=totalrefs + '1' WHERE username='$refid'");
}