Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

UNITY mysql php

Discussion in 'Scripting' started by UnityforThesis, Jul 15, 2015.

  1. UnityforThesis

    UnityforThesis

    Joined:
    Jul 15, 2015
    Posts:
    3
    We are creating a web application where users upload images of their work.
    So the images they uploaded will be saved on mysql database.
    I would like to ask if it is possible to create a virtual exhibit where we create a stage using unity and change the texture of a cube in that stage using the image in saved in mysql. The web app si coded in Php.
     
  2. SubZeroGaming

    SubZeroGaming

    Joined:
    Mar 4, 2013
    Posts:
    1,008
    Sure. Using the wwwForm you can GET & POST using a php connect file, which can go into the database (if successfully connected) and download a png image.

    Check out the www class and the wwwForm class
     
  3. UnityforThesis

    UnityforThesis

    Joined:
    Jul 15, 2015
    Posts:
    3
    tutorials we found online are using WWW with http links which we assume as online database can our localhost can be use in WWW class?
     
  4. SubZeroGaming

    SubZeroGaming

    Joined:
    Mar 4, 2013
    Posts:
    1,008
    Sure can.

    Just put the address of your localhost there. Probably will need to set up Apache and XAMP
     
    UnityforThesis likes this.
  5. UnityforThesis

    UnityforThesis

    Joined:
    Jul 15, 2015
    Posts:
    3
    we're using apache
     
  6. superme2012

    superme2012

    Joined:
    Nov 5, 2012
    Posts:
    207
    Last edited: Jul 15, 2015
  7. Slaghton

    Slaghton

    Joined:
    Sep 9, 2013
    Posts:
    139