Skip to content

GuptaTanay/Connecting-database-with-PHP-using-Unity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Connecting-database-with-PHP-using-Unity

This project will hep you to connect your unity project with database.Here are the steps below as :-

  1. Install any localhost Database. I installed XAMPP. Install it in default directory = C/xampp.
  2. Now download the project files uploaded here. Uploaded files contains:

    a. PHP files folder containing 3 php files.
    b.A unity project named as Working with Database.
  3. Now go to C/xampp/htdocs and paste the PHP files folder there.
  4. Open xampp and click on 'Start' on Apache and Mysql.
  5. Now Go to web browser and open localhost/phpmyadmin.
  6. Create the Database and a table.
  7. Insert some dummy entries for testing in the table using insert tab in the upper menu.
  8. Now open the SelectScript.php file and see the comments and make necessary changes in the script as per your naming conventions.
  9. Then go to webbrowser and paste the address of the SelectScript.php file in the web browser.
  10. The messgaes will be shown on the basis of the results.

Opening Unity and integrating the DB with UNity.

  1. Download and extract the .rar file and this is the unity project.
  2. open the UnityInsertion script from the PHP files folder and read the comments and understand the code and make necessary changes you like.
  3. Open the scene and select main camera, you will see 2 scripts on it.
  4. Open Data loader and read the comments and start working on it.
  5. Now remove this script after usage and now read the contents of the InsertingData script and make necessary changes to the name of the variables.
  6. Ask cquestions if you have any doubts and raise issues if you have any....

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages