|
|
|
|
![]() ![]() |
![]() ![]() Group: Members
Posts: 36 Joined: 8-November 04 Member No.: 2,187 |
Post
#1
Apr 4 2005, 07:52 PM
How well does java script work with a mysql databse for gaming and such? if not, then what would you recommend for logging in and storing information for an online game and does anyone have links to simple scripts and/or tutorials?
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 629 Joined: 26-February 05 Member No.: 3,995 |
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 624 Joined: 30-October 04 From: Philippines Member No.: 2,049 |
Post
#3
Apr 5 2005, 11:01 AM
QUOTE(beeseven @ Apr 5 2005, 09:27 AM) First, Java != Javascript. Second, PHP is the best language for dealing with mySQL and it's also really easy to learn. php.net is a really good resource, and there are some tutorials here in the tutorial section. [right][snapback]68388[/snapback][/right] PHP is really the best language. It's the first web-programming language that i learned. And I don't want to learn any other language! I just love PHP! Every one has PHP! |
![]() ![]() Group: Members
Posts: 36 Joined: 8-November 04 Member No.: 2,187 |
Post
#4
Apr 6 2005, 12:38 PM
the mian problem i have come across with php is that it actually doesn't have alot of real time functionability like java does. I like php and all, but I think I want to actually end up using both. But does java have another form of databasing that is easier then?
|
![]() ![]() Group: Members
Posts: 27 Joined: 19-April 05 From: Russia Member No.: 5,888 |
Post
#5
Apr 20 2005, 01:19 PM
<script language="Java Script"> if (document.formname.gap_name == 'LOGIN' && document.form_name.gap_name.value == '123456789'){ window.open("page_after_check.htm"); } </script> |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members
Posts: 873 Joined: 30-July 04 Member No.: 246 |
Post
#6
Apr 20 2005, 03:15 PM
JavaScript is client side only. It has no way of interacting with the server other than retrieving documents from it as a web browser would. If you want to use MySQL, you are going to need to use a server-side language such as PHP or Perl. As has been mentioned, PHP is easier to learn, and has great MySQL functionality. In theory, you could have JavaScript submit information to a script located on the server that would then process the information accordingly; however, this would open up all sorts of security issues and is most definately not a good idea. |
![]() ![]() ![]() Group: Members
Posts: 42 Joined: 8-October 05 From: Haarlem, The Netherlands Member No.: 12,672 |
Post
#7
Oct 8 2005, 03:26 PM
Depends on what kind of game you are running but I sincerely suggest you use PHP and mySQL. Even if your game is a flashgame, the trouble will than be how to build a link between the flash (actionscript 2.0) and php... Maybe actionscript can connect to mySQL itself these days? |
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
72 | ultrasmad | 7,316 | 15th February 2008 - 12:10 PM Last post by: avara.badal |
|||
![]() |
5 | ultrasmad | 712 | 10th October 2004 - 01:46 PM Last post by: eldeo |
|||
![]() |
6 | Phil | 611 | 4th August 2004 - 10:32 PM Last post by: Gamesquare |
|||
![]() |
2 | zachtk8702 | 499 | 13th August 2004 - 04:26 PM Last post by: zachtk8702 |
|||
![]() |
13 | GameDev | 2,854 | 14th April 2006 - 02:35 AM Last post by: beeseven |
|||
![]() |
5 | spyshow | 581 | 28th November 2004 - 08:16 AM Last post by: ariya |
|||
![]() |
1 | pollux1er | 736 | 24th July 2007 - 11:13 PM Last post by: matak |
|||
![]() |
4 | Eric Straven | 1,007 | 1st October 2004 - 04:44 AM Last post by: Eric Straven |
|||
![]() |
0 | sanweikui | 378 | 1st October 2004 - 03:34 AM Last post by: sanweikui |
|||
![]() |
2 | KeeperMustDie | 281 | 8th July 2008 - 10:13 AM Last post by: KeeperMustDie |
|||
![]() |
3 | sanweikui | 486 | 11th March 2005 - 03:51 PM Last post by: gdpglc |
|||
![]() |
5 | hansley | 566 | 26th October 2004 - 06:46 PM Last post by: björn |
|||
![]() |
2 | Dawid | 524 | 14th October 2004 - 03:20 PM Last post by: ashiezai |
|||
![]() |
13 | Shadow | 953 | 15th October 2004 - 01:51 AM Last post by: odomike |
|||
![]() |
6 | darkwarrior | 340 | 12th October 2004 - 12:23 AM Last post by: odomike |
|||
|
Lo-Fi Version | Time is now: 4th December 2008 - 10:21 PM |