Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

mateuszwolski2
mateuszwolski2
5,504 Points

Confused about what technology use for saving data on web game.

Hi treehouse ! I'm planing to start a small project of simple web game. The thing is I would like to use HTML5 / CSS and JavaScript. But I have been wondering what technology should I use for storing the data (like attributes of heroes, charackter levels etc ...) Now I know about PHP and MySQL and that would solve my problem hovewer is it good idea to start work with those technologies ? Is there any other frameworks which are solving this problem and are more recent or maybe dedicated to work with stored data for web game dev ?

1 Answer

Austin Whipple
Austin Whipple
29,725 Points

PHP and MySQL will do the job and are still used fairly often for old or new projects. Essentially what you need is:

  • A place to save the data.
  • A programming language that runs on the server and can interact with that data to pass it to the browser.

A database will address the first bullet and MySQL is a sure bet. Some server-side languages you can use (that are a little newer and trendier than PHP) include Python, Ruby (or Ruby on Rails), and even Node.js which is JavaScript run on a server rather than browser.

mateuszwolski2
mateuszwolski2
5,504 Points

Perfect ! I just want to be sure I'm not wasting a time for learning a framework witch is ancient. I'm still newbie in this area of programming or it's better to say querying. Thank's a lote Austin !