Ok there's a lot involved in what you are asking for. I would suggest using PHP to do so.
First, have you set up a databade and do you have all the connection details, hostname, user, pass, dbname? * don't post them here! Oh and what database are you using? MySQL?
If you have done that then...