Sunday, September 9, 2018

Networking - Database Pt. I

Throughout this trimester, I have been assigned to create the database and the back end coding for our project, Dreadlight. A database or back end essentially means the data storage for all the user ID's, preferences and all. For the Dreadlight project, what we needed were the user's password, email and their username. In this blog, I will be writing about how I managed to tackle this issue.

In order for you to create a database, you will need to download XAMPP. XAMPP allows you to create your own database by using localhost. Imagine localhost as the birth place of your database, it hasn't been published on the internet yet, meaning that no one can use it online. However, you can still use it for testing purposes. Once this step is done, you can create a table. A table keeps the contents in which you want it to keep. A table can be used to keep the properties of objects within the games, such as Item ID's, summary and all, under one big table. For the project, I just created one table, keeping all the user pref's variables (Username, Password and Email). Once your table is complete by filling in the desired fields, you'll have to do some coding with php. There are some tutorials online, especially on YouTube, which can help you out. Link here:
https://www.youtube.com/watch?v=EByl95OMG2o&list=PLTm4FjoXO7ndjPE8JXrJ9MjMfsJv956Qm

No comments:

Post a Comment