Mysql Saving data problem
#5

This is what I tried right now but still it didn't save the data.
PHP код:
new query[150];
        new 
name[24];
        
        
GetPlayerName(playeridnameMAX_PLAYER_NAME);
        
mysql_real_escape_string(namename);
         
mysql_format(mysqlquerysizeof(query), "UPDATE 'accounts' `Admin` = '%d', `VIP` = '%d', `Money` = '%d', `Kills` = '%d', `Deaths` = '%d', `Score` = '%d' WHERE `Name` = '%s'",
                                  
Player[playerid][Admin],
                                  
Player[playerid][VIP],
                                  
Player[playerid][Money],
                                  
Player[playerid][Kills],
                                  
Player[playerid][Deaths],
                                  
Player[playerid][Score],
                                  
name);
    
mysql_query(mysqlquery); 
Help would be appreciated!
Reply


Messages In This Thread
Mysql Saving data problem - by DeeadPool - 10.04.2017, 08:09
Re: Mysql Saving data problem - by Stev - 10.04.2017, 08:12
Re: Mysql Saving data problem - by Sjn - 10.04.2017, 08:28
Re: Mysql Saving data problem - by DeeadPool - 10.04.2017, 08:56
Re: Mysql Saving data problem - by DeeadPool - 10.04.2017, 20:11
Re: Mysql Saving data problem - by Vince - 10.04.2017, 20:19
Re: Mysql Saving data problem - by DeeadPool - 10.04.2017, 22:27
Re: Mysql Saving data problem - by Sanady - 10.04.2017, 22:49
Re: Mysql Saving data problem - by DeeadPool - 10.04.2017, 22:52
Re: Mysql Saving data problem - by Sanady - 10.04.2017, 23:08

Forum Jump:


Users browsing this thread: 1 Guest(s)