Raised This Month: $ Target: $400
 0% 

Save player data to mysql


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-31-2018 , 20:33   Re: Save player data to mysql
Reply With Quote #7

Quote:
Originally Posted by CrazY. View Post
@Bugsy, yes, this is a prefer of each programmer, both will work. I did not found results about REPLACE INTO in w3c, only about replace strings. Are you sure that this will work?
I'm not sure what you mean but yes, what I posted works and I tested it. The key thing (no pun intended) is defining the primary key and then as long as that value already exists in a row, the other fields will be updated. In my example, steam id.
__________________

Last edited by Bugsy; 05-31-2018 at 20:34.
Bugsy 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 04:43.


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