Can someone please tell me whats wrong with this , would really appreciate it
///////////////////////////////////Registration Add User
$check = mysql_query("SELECT from xtwf_users where uname='".$user."'");
else if($action=="newuser")
{
if($pass=='')
{
echo "Error! You have typed no password";
}else if ($user=="$check")
{
echo "The username is taken";
}else{
mysql_query("INSERT INTO xtwf_users SET id='' , uname='".$user."' , password='".$pass."' , site='".$site."' , email='".$email."' , name='".$name."'");
echo "You have successfully signed up";
}
}else{
///////////////////////////////////Registration Add User
$check = mysql_query("SELECT from xtwf_users where uname='".$user."'");
else if($action=="newuser")
{
if($pass=='')
{
echo "Error! You have typed no password";
}else if ($user=="$check")
{
echo "The username is taken";
}else{
mysql_query("INSERT INTO xtwf_users SET id='' , uname='".$user."' , password='".$pass."' , site='".$site."' , email='".$email."' , name='".$name."'");
echo "You have successfully signed up";
}
}else{
Comment