Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Aug 24, 2016 at 09:34 AM by Bunny83 for the following reason:

The question(s) are too unspecific / complex for a single answer. Not enough context provided.

avatar image
0
Question by LeonPS531 · Aug 24, 2016 at 08:58 AM · multiplayerdatabase

Mysql PHP connection for a user balance and XP

I am new to Unity and am currently learning how to code in C Sharp so please try and keep things as simple as possible. Ok, so what I really want to do is have an Sql database that I can connect to from inside unity, search through the database until it finds the correct "Name/Id" this would need to be a varchart as I am storing my username as a string I am pretty sure, it would then send the current balance and XP back to the client so I can use the value in game, also I need to be able to edit the balance. Apologies for my poor explanation, I am still very new to this and am not really to sure how this would work. Many thanks!

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bunny83 · Aug 24, 2016 at 09:30 AM 0
Share

This question is way to vague / not specific enough. You basically ask for a complete solution. It's also hard to deter$$anonymous$$e what "level" of experience you have with PHP, SQL and C#. Things you have to tackle are:

  • database design. So based on the data you want to store you have to create a database structure.

  • webservice interface. You need to define and create methods which allows you to query / read and update / write to your database. Either have seperate PHP files for each method or use command parameters.

  • If you want to have true user accounts things gets way more complicated. You need methods to create accounts, change password, ...

  • With user accounts you also need either some sort of login, or pass the username / password with each request.

  • On the client side you would need to create a class with some methods to perform all those requests on your webinterface.

"please try and keep things as simple as possible", well a complete user account system is far beyond simple, especially for beginners.

UnityAnswers is not a place to request complete tutorials. It's for concrete simple and concrete problems.

Read the FAQs, especially the sections "What are the guidelines for writing good questions?" and "Some reasons for getting a post rejected".

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Player interaction in multiplayer. 0 Answers

Hosted Database for Mobile Game 0 Answers

Connection between menu and scene 2 Answers

Database entegration or data storage 0 Answers

Security issues with Multi-player User Database? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges