basically i have a online game underway all php based

what i am trying to do is create a client which the user can download and basically run the game from there desktop.
the site runs mysql latest version.


but what i really want to know how to do is how to create a log-in + connection to query the database and update values.

how would i go about this in java?


thanks in advance

This is kind of dangerous as it requires you to open your SQL server up to Java. It would probably be best to create a PHP script that acts as a relay that your Java application can post requests to. Of course, make sure your PHP script validates all input.

You could pass variables through GET or POST requests, though I'd probably do POST over an SSL connection, that way no intermediate programs/routers can store the GET parameters.

- Joe