IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Java + Login


pikaz
no avatar
Newbie [Level 2]
**
Group: Members
Posts: 36
Joined: 8-November 04
Member No.: 2,187



Post #1 post 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?
Go to the top of the page
+Quote Post
beeseven
no avatar
Privileged Member
*********
Group: Members
Posts: 629
Joined: 26-February 05
Member No.: 3,995



Post #2 post Apr 5 2005, 01: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.
Go to the top of the page
+Quote Post
karlo
no avatar
Privileged Member
*********
Group: Members
Posts: 624
Joined: 30-October 04
From: Philippines
Member No.: 2,049



Post #3 post 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!
Go to the top of the page
+Quote Post
pikaz
no avatar
Newbie [Level 2]
**
Group: Members
Posts: 36
Joined: 8-November 04
Member No.: 2,187



Post #4 post 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?
Go to the top of the page
+Quote Post
ostgur
no avatar
Newbie [Level 2]
**
Group: Members
Posts: 27
Joined: 19-April 05
From: Russia
Member No.: 5,888



Post #5 post 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>
Go to the top of the page
+Quote Post
Spectre
no avatar
Privileged Member
*********
Group: Members
Posts: 873
Joined: 30-July 04
Member No.: 246



Post #6 post 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.
Go to the top of the page
+Quote Post
vitrus
no avatar
Newbie [Level 3]
***
Group: Members
Posts: 42
Joined: 8-October 05
From: Haarlem, The Netherlands
Member No.: 12,672



Post #7 post 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?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new   72 ultrasmad 7,316 15th February 2008 - 12:10 PM
Last post by: avara.badal
No New Posts   5 ultrasmad 712 10th October 2004 - 01:46 PM
Last post by: eldeo
No New Posts   6 Phil 611 4th August 2004 - 10:32 PM
Last post by: Gamesquare
No New Posts   2 zachtk8702 499 13th August 2004 - 04:26 PM
Last post by: zachtk8702
No New Posts   13 GameDev 2,854 14th April 2006 - 02:35 AM
Last post by: beeseven
No New Posts 5 spyshow 581 28th November 2004 - 08:16 AM
Last post by: ariya
No New Posts   1 pollux1er 736 24th July 2007 - 11:13 PM
Last post by: matak
No New Posts   4 Eric Straven 1,007 1st October 2004 - 04:44 AM
Last post by: Eric Straven
No New Posts 0 sanweikui 378 1st October 2004 - 03:34 AM
Last post by: sanweikui
No New Posts   2 KeeperMustDie 281 8th July 2008 - 10:13 AM
Last post by: KeeperMustDie
No New Posts   3 sanweikui 486 11th March 2005 - 03:51 PM
Last post by: gdpglc
No New Posts   5 hansley 566 26th October 2004 - 06:46 PM
Last post by: björn
No New Posts   2 Dawid 524 14th October 2004 - 03:20 PM
Last post by: ashiezai
No New Posts   13 Shadow 953 15th October 2004 - 01:51 AM
Last post by: odomike
No New Posts   6 darkwarrior 340 12th October 2004 - 12:23 AM
Last post by: odomike


 



RSS Lo-Fi Version Time is now: 4th December 2008 - 10:21 PM