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 missypooh · Mar 26, 2012 at 02:54 AM · databasemysqlphp

How to use php to update mySQL

Hello, i am using mySQL to store all my data. So i am like following the tutorials which everyone have recommended,Server_Side_Highscores. So basically, there is a php script. May i know where should we put the script at? I doubt we need to attach the php script to an gameObject?? And regarding md5.js, do we have to attach to any gameObject.

http://www.unifycommunity.com/wiki/index.php?title=Server_Side_Highscores

Still very confusing about the process of using the server side highscore and would appreciate some kind soul can give me a brief instruction on how to use all the 3 files?

Thank you

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 by0log1c · Mar 26, 2012 at 03:08 AM 1
Share

You probably need a webserver with both PHP and $$anonymous$$ySQL installed. You will setup the database and upload the PHP scripts there, not within Unity itself. From Unity, you will probably use WWWForm to post and fetch data to the PHP, which serves as a gateway to your $$anonymous$$ySQL database.

avatar image missypooh · Mar 26, 2012 at 03:32 AM 0
Share

can i used phpmyad$$anonymous$$? I would appreciate you could provide more details how to do?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by by0log1c · Mar 26, 2012 at 03:46 AM

I've never used this tutorial but I'll try to give general advice to make it work. In case you just want to save data locally, SQLite might be a better solution, this tutorial is for saving data online.

  • You need a webserver with PHP and MySQL installed, I use freewebspace.ws but any will do.

  • Log into your cpanel and find the Database management section. Create a new database.

  • Administrate that database and run the SQL code provided in the tutorial to setup the database tables.

  • Upload addscore.php and display.php onto your webserver. There seem to be 'improved version' provided.

  • Don't forget to edit the PHP scripts with your SQL database information provided within your cpanel.

  • Within Unity, add one of the HSController script depending on the language you use and have them point to your PHP scripts.

I didn't test it myself but that's probably how it works.

Comment
Add comment · Show 1 · 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 missypooh · Mar 26, 2012 at 03:56 AM 0
Share

initially i am using sqlite, but when i run the games on .exe file, it is not updating to sqlite. Any ideas why? It is because of the security problem??

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

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

How can i connect my unity app made for android to connect with mysql database?,How do i able to make my android app made from Unity connect to Mysql database 0 Answers

unity3d connect to php or coldfusion for database information 2 Answers

Android Mysql Database online 3 Answers

Setup mySQL, insert value to mySQL, retrieve data from mySQL 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