Raised This Month: $ Target: $400
 0% 

MySQL not updating


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
AnimalMonster
Senior Member
Join Date: May 2020
Old 11-10-2020 , 15:10   Re: MySQL not updating
Reply With Quote #9

Quote:
Originally Posted by r0ma View Post
PHP Code:
formatexg_szQuerycharsmaxg_szQuery ), "UPDATE `%s` SET `Candy` = '%d', `LevelS` = '%d', `LevelG` = '%d', `LevelH` = '%d' WHERE `%s`,`IP` = '%s'"SQL_TABNAMECandies[id], Level[id][0], Level[id][1], Level[id][2], SQL_TABNAMEszIP );

formatexg_szQuerycharsmaxg_szQuery ), "SELECT * FROM `%s` WHERE ( `%s`.`IP` = '%i' )"SQL_TABNAMESQL_TABNAMEszIP); 
to:

PHP Code:
formatexg_szQuerycharsmaxg_szQuery ), "UPDATE `%s` SET `Candy` = '%d', `LevelS` = '%d', `LevelG` = '%d', `LevelH` = '%d' WHERE `IP` = '%s'"SQL_TABNAMECandies[id], Level[id][0], Level[id][1], Level[id][2], szIP );

formatexg_szQuerycharsmaxg_szQuery ), "SELECT * FROM `%s` WHERE ( `%s`.`IP` = '%s' )"SQL_TABNAMESQL_TABNAMEszIP); 
the ip is a string.

change all new szIp[10] to new szIp[23];
Thanks, that should work, i will go test it later since i am going to sleep, thx for helping
AnimalMonster is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode