I have a image archive site and I was told that if I stored my images in a database that no one could hotlink me or use a siteripper to steal them. How can i learn to make something like this, i don't know mySQL or PHP but i do know basic cgi.

Where do i start? I don't understand how you make a database do i have to enter the location of each image or does it do all that for you and make the HTML pages showing a image. I don't even know what you need to make a database but i want to learn or would it be dumb to make something like this for a few hundered pics?

Thanks