I have a Server: Localhost via UNIX socket with a mySQL database which I access by using phpmyadmin. Now I got a table like this:
x double
y double
id smallint10 auto increment
The x and y values are used to store coordinates.
Now I want to get the newest coordinates from the database and show those in google maps.
So I would need a php script to get them. Then I would need a js script to show them in google maps.
You may try PHP + MySQL, which works great (PHP is a server side scripting service and MySQL is a database service, which works with PHP). You may go through PHP/MySQL Tutorial 1 and PHP / MySQL Tutorial 2 to get an idea about how these things, like storing data into, and retrieving data from, MySQL database works, using PHP.
You may also have a look at jQuery‘s ajax methods for retrieving data from a remote source, live, while staying on the same page, without navigating to another one. Here is a tutorial http://viralpatel.net/blogs/jquery-ajax-tutorial-example-ajax-jquery-development/ (this may help you to show mysql results in google maps)
I recommend you to use PHP’s PDO method to do database operations, since the PHP manual itself says “Use of mysql extension is discouraged.”. You may go through PDO Tutorial for MySQL Developers