After creating your localhost database, with the table containing the user's variables, we can now move on to the next step, putting the database online!
Before we start, you'll need to create an account on 000webhost.com. Their services gives out spaces for your database online, free of charge. And through this blog entry, I will be writing the steps I have taken.
After finishing the php code and finalizing the table, we will need to import our table(s). Concurrently, you'll also have to sign in to your 000webhost site, and create a database there. You will also have to keep track of where you kept your php code (which should be under C > Program Files x86 > XAMPP > htdocs > [PROJECT_NAME]). Underneath 000webhost, there will be a Database tab. From here, you can access their php page, the only difference being that this is the online database, as opposed to your localhost php. You'll also have to access the File Transfer tab, where you'll need to put your php code. And just like that, your game is now online and ready to accept user variables, but, you'll need to do some more code within Unity.
Before we start, you'll need to create an account on 000webhost.com. Their services gives out spaces for your database online, free of charge. And through this blog entry, I will be writing the steps I have taken.
After finishing the php code and finalizing the table, we will need to import our table(s). Concurrently, you'll also have to sign in to your 000webhost site, and create a database there. You will also have to keep track of where you kept your php code (which should be under C > Program Files x86 > XAMPP > htdocs > [PROJECT_NAME]). Underneath 000webhost, there will be a Database tab. From here, you can access their php page, the only difference being that this is the online database, as opposed to your localhost php. You'll also have to access the File Transfer tab, where you'll need to put your php code. And just like that, your game is now online and ready to accept user variables, but, you'll need to do some more code within Unity.
No comments:
Post a Comment