About Store Forum Documentation Contact



Post Reply 
sql login problems
Author Message
velocityx Offline
Member

Post: #1
sql login problems
i'm trying to make a login,but when i made so to get account and passwords i get that i can't use 2 pointers,what alternative should i use to make it work
Code:
case CS_LOGIN:
         {
            if(!boba.getRows("information", "account="+(boba.string(account()), &messages))
            {
            if(!boba.getRows("information", "password="+boba.string(password()), &messages))
            {
            boba.newRow("information", (SQLValues().New("account",account()).New("password",password()).New("x",position.x).New("y",position.y).New("lastip",connection.address().asText())), &messages);
            Gui.msgBox("Connection Failed", messages);  
            }
            }
            else
            {
            ServerReceiveLogin(connection.data, account, password);
            }
         }break;
08-08-2012 02:12 PM
Find all posts by this user Quote this message in a reply
Post Reply