small script error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    small script error

    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{

    #2
    }else{ what?

    Comment


      #3
      thats the last else which leads to the main page , the syntax error says this line

      else if($action=="newuser")

      but i think its this line
      $check = mysql_query("SELECT from xtwf_users where uname='".$user."'");

      Comment


        #4
        what does the error say ? ..... unexpected else ....... or expecting }?
        if so change it to
        }else if($action=="newuser")
        Last edited by something else; 16.08.09, 09:06.

        Comment


          #5
          have a look at the function above that. i usually get same error when adding new stuff and its the stuff i added that is above that is the conflict.
          Wapchat4u


          Topsites4u

          Comment

          Working...
          X