There are tutorials. Google is helpful.
You need a server, a web server software, a database, and some kind of programmatic container (PHP/Java servlet/Python, etc).
Then you use AJAX to pass information back and forth using the HTTP specification, and have your container retrieve information from your database and process data as needed to reformat it.