Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,687 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 !