AbZ my site has complete instructions from start to finish on how to create and use a database connection. This is really something you need to learn from start to finish if you're going to do it properly - database security is very important on the web and using a database, if done incorrectly, could cause a lot of harm to your data. Please really study database connectivity and don't try to rush into it.