Click to See Complete Forum and Search --> : Big Project NEED input !


Jas
02-26-2003, 09:36 PM
Ok what i am doing is i am creating a turn based game for people to join and play online an example of this type of game is World-of-war.com or Swirve.com's Earth: 2025. I have decided to use Javascript for most of the scripting and have the following inqueries.

Database type: I believe I am going to us a MS access but i wonder in a MY SQL wouldn't be more effective. ( the databse must hold player ID's Passwords, and player stats including how many units turns money ect... that player has. The database also must be easy to access the info. )

What is the "struct" cammand for Javascript

ANd suggestions on what code to use to access the info from the DB and print it and then change it when the user makes a command


Thanks
Jas

pyro
02-26-2003, 09:44 PM
You will not be able to connect to you database with javascript. That requires some serverside language such as PHP, Perl, or ASP. Depending on what type of database you chose, there will probably be a certain of the languages that will be better suited to connect to your database. I personally use PHP with mySQL... ;)

Jas
02-26-2003, 09:54 PM
Yea sorry i didn't mean to imply i was using Javascript for connecting to the Databse i will be using Perl or ASP depending on the server i can get ahold of but i am interesed in PHP and was looking into that aswell. Is the syntax much different for PHP and how do you like working with MY SQL.

pyro
02-26-2003, 09:59 PM
The syntax of PHP is similar to Perl, but quite different from ASP. To me, the syntax for PHP was quite easy to pick up. It also has a similar syntax to javascript.

I like mySQL, as it seems quite easy to use and powerful enough for all my needs so far. Not sure how it relates to other databases as I've never used any other.