Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by Farhan-Aqeel · Aug 18, 2014 at 06:39 AM · databasemysqlsqldatabase

Database connection on PhPMyAdmin

Hi. i am completely new to Unity and want to create a Leaderboard(ScoreBoard)so that i can save the scores on a server. i have installed Xampp server also i have a free hosting setup. anyone can guide me how to do connect and save those scores and retrieve later.. any Guidance will be helpful. sorry for my English but i am not a native speaker

Comment
Add comment · Show 2
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 thornekey · Aug 18, 2014 at 06:56 AM 0
Share

What hosting service are you using?

avatar image Farhan-Aqeel · Aug 26, 2014 at 09:55 AM 0
Share

I am using a free hoisting service. i.e 000wehost.com

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by senc01a · Aug 18, 2014 at 08:58 AM

Hi Farhan,

Installing XAMPP is a great first step, but you have a bit of additional work to do. I am going to describe the high level steps that you need to conduct in order to get it to work.

  1. Create a webservice in PHP which is capable of collecting scores and store them on a database, i.e., mysql database. This webservice has to offer an additional method to allow the game not only to submit scores, but also to get the top scores. I recommend you to have a look at the following tutorial to learn how to do it. PHP Mysql Tutorial or Creating a restful webservice in PHP. Here is also an example of a minimalistic php script that does the job PHP unity scoreboard example

  2. You will need to submit data to this webservice from the game. You can use the end screen of the game for this. Once you've collected the required data, you can use the WWWForm class to submit these scores. See this link for an example WWWForm example

  3. Last but not least, you probably also want to display the leaderboard at some point. For this purpose you can create a new PHP script which simply pulls the top scores from the database with a query. You can use the WWW class in Unity for this purpose.

I hope this helps!

Comment
Add comment · Share
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
0

Answer by Farhan-Aqeel · Aug 19, 2014 at 07:31 AM

Thanks bro. seems helpful. i'll try and will respond. :)

Comment
Add comment · Share
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

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Finish setup php, how to communicate with mySQL and unity 2 Answers

Sql Server Compact 4.0 error 2 Answers

Login from database in unity 0 Answers

Inventory with a Database 0 Answers

MySQL Database Highscore 0 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