- Home /
Question by
marshall50 · Dec 06, 2013 at 07:56 AM ·
javascriptdatabasemysqlphp
Javascript with php
Hello, I'm working now on one project that needs database. I have MySQL database, table Users and php script for creating new user.. Can I acces this script somehow in Unity? Or when someone wants to log in to game, how can I acces php script in javascript?
Comment
Answer by tanoshimi · Dec 06, 2013 at 08:29 AM
You can call the PHP script on a webserver via Unity's WWW class.
I was trying to achive that but I dont know how.. What if this php script will return something? For example if user wrote good password or not..?
Then the response will be contained in the text property of the WWW object.
Your answer
Follow this Question
Related Questions
Web Player and database 1 Answer
Android Mysql Database online 3 Answers
Saving a leaderboard using PHP and C#. 2 Answers
Register help 0 Answers