Ok... I am trying to get my database skills going... What I would like to do is connect to my database through code... but here is the catch..

I have my database on a web server..

How do I use code to connect to the database on a remote server? Would some kind soul out there give me an example how to connect to the database through code and display data?? Please comment heavily so I can see what each action is for?

Thanks in advance.

Anjari