- Home /
Character Creation from database
I am not a c# programmer and I am looking for a good example of using the www object to insert or pull data from a database. I have the database and php coding, what I am looking for is the appropriate syntax for www. I have used the script example in the reference but this does not seem to work. I am sure its my understanding of C#, I have tried it with
IEnumerator () { // and without.</p> <p>public string url = "http://mydomain.com/page.php?avatarFile=5 WWW www= new WWWW(url); yield return www; }
Answer by diabloroxx · Nov 19, 2010 at 11:21 PM
You can access the returned data depending on the type of the data. If it is String :
String myData; Texture2D myTexture;
IEnumerator Start() { public string url = "http://mydomain.com/page.php?avatarFile=5"; WWW www= new WWWW(url); yield return www; myData = www.text; myTexture = www.texture; }
So on. Check http://unity3d.com/support/documentation/ScriptReference/WWW.html for further return reference.
Your answer
![](https://koobas.hobune.stream/wayback/20220613083707im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Upload audio file into mysql database 0 Answers
Best way to protect www post to a php file ? 1 Answer
Unity - MySQL data loss 0 Answers
www php send data to mysql 2 Answers
php, sql security 3 Answers