• 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 aress · Jan 30, 2014 at 01:07 PM · webplayerdatabaseconnectionmysqlphp

Web Player and database

Hello, im making a multi-platform game (phone,pc and web), I use mysql data base and php brige to connect and store the players accounts and score. The pc and phone versión works great the problem is when I build it for web player and try to connect to data base never connect its just standing connecting and never change this state.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by aress · Feb 03, 2014 at 11:56 AM

bump

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 APProjects · Mar 06, 2014 at 04:55 PM 0
Share

Where do you host the webplayer build? $$anonymous$$aybe it's a problem with crossdomain.xml. If on your database server, there is no crossdomain.xml or it's not correct, it'll refuse to connect.

Read more here: link text

Also, it needs some special modification if your database is on a host using https and your database host uses http.

If it's a crossdomain problem you should try to copy this crossdomain.xml to the root of your database server:

 <cross-domain-policy>
     <allow-access-from domain="*" secure="false" />
 </cross-domain-policy>


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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Using PHP to generate objects or list in Unity with C# 2 Answers

PHP MySQL - How to insert row of data 1 Answer

Accessing a database though $_GET 1 Answer

MySql On Web ? 1 Answer

Is it possible to send and recieve data from/to a MySql server? 4 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges