- Home /
Problem with storing information such as Money amount in mySQL database?
Hi. So I'm trying to store all data for every user in mySQL. Their money, ranking, wins, loss, draws, username, password, email etc.
Problem is I want the max. money you can have to be the max. an int can hold (247 and so on). Am I doing this completely wrong? What should I be doing to store this if yes? I've been trying to do this myself and I'm starting to fail quite a lot. ANY help appreciated, thanks!
you can use serialization to save data. Try X$$anonymous$$Lserialization to serialize your class
I forgot to add the picture, it's there now. Is there no other way to store such a big amount in mySQL? I really wanna avoid getting more complicated with networking than this.
Answer by Madswint · Apr 11, 2014 at 05:44 PM
Nevermind!! I FIGURED IT OUT! I completely misunderstood how it works. If anyone has the same problem, just set it to INT and 255 as value. 2147483647 is still the max value of it.
Your answer
Follow this Question
Related Questions
Saving Huge strings over the web 3 Answers
Setup mySQL, insert value to mySQL, retrieve data from mySQL 0 Answers
Unity PHP Database is going haywire 0 Answers
unity3d connect to php or coldfusion for database information 2 Answers
Unity SQL Database? 3 Answers