not saving correctly [MYSQL]
#1

Well it's not saving correcly

PHP код:
                new query[1500];
                
mysql_real_escape_string(pInfo[playerid][Nick], pInfo[playerid][Nick]);
                
mysql_real_escape_string(pInfo[playerid][IP], pInfo[playerid][IP]);
                
format(querysizeof(query), "INSERT INTO `playerdata` (`nick`, `password`, `ip`, `age`, `gender`, `skin`, `email`, `score`, `money`) VALUES('%s', '%d', '%s', '%d', '%d', '%d', '%d', '%d', '%d')",
                    
GetName(playerid),
                    
udb_hash(inputtext),
                    
pInfo[playerid][IP],
                    
pInfo[playerid][Age],
                    
pInfo[playerid][Gender],
                    
pInfo[playerid][Skin],
                    
pInfo[playerid][Email],
                    
StarterLevel,
                    
StarterMoney);
                
mysql_query(query);
            } 
Name, Password, Age, Gender, Skin, Level, Money is saving good, but IP and Email not...
Reply


Messages In This Thread
not saving correctly [MYSQL] - by lulo356 - 23.07.2015, 22:40
Re: not saving correctly [MYSQL] - by trablon - 23.07.2015, 22:45
Re: not saving correctly [MYSQL] - by lulo356 - 23.07.2015, 23:26
Re: not saving correctly [MYSQL] - by trablon - 23.07.2015, 23:32
Re: not saving correctly [MYSQL] - by M4D - 23.07.2015, 23:37
Re: not saving correctly [MYSQL] - by JaydenJason - 23.07.2015, 23:40
Re: not saving correctly [MYSQL] - by trablon - 23.07.2015, 23:43

Forum Jump:


Users browsing this thread: 3 Guest(s)