Login/Register MySQL not working
#1

edit: well login/register is working so far, but I have this error: I can enter ANY password to login, any suggestions?

PHP код:
    if(dialogid == iLoginDialog)
    {
        if(
response)
        {
            if(
strlen(inputtext) > 0)
            {
                new 
EscapedText[60];
                
mysql_real_escape_string(inputtextEscapedText);
                new 
len strlen(EscapedText);
                
format(Querysizeof(Query), "SELECT `Password` FROM `RL` WHERE `Username` = '%s';"pName);
                
mysql_query(Query);
                new 
result[60];
                
mysql_fetch_field_row(result"Password");
                if(
strcmp(EscapedTextresulttruelen) == 0)
                {
                    
TogglePlayerSpectating(playeridfalse);
                    return 
1;
                }
            }
            
ShowPlayerDialog(playeridiLoginDialogDIALOG_STYLE_PASSWORD"Login""Enter Your Password!""Login""Cancel");
        }
        else
            return 
0;
    } 
Reply


Messages In This Thread
Login/Register MySQL not working - by SEnergy - 27.07.2012, 09:59
Re: Login/Register MySQL not working - by Misiur - 27.07.2012, 10:10
Re: Login/Register MySQL not working - by SEnergy - 27.07.2012, 10:17
Re: Login/Register MySQL not working - by Misiur - 27.07.2012, 10:30
Re: Login/Register MySQL not working - by SEnergy - 27.07.2012, 10:43
Re: Login/Register MySQL not working - by doreto - 27.07.2012, 11:22
Re: Login/Register MySQL not working - by SEnergy - 27.07.2012, 14:27

Forum Jump:


Users browsing this thread: 1 Guest(s)