PHP gallery problems

So im trying to create a PHP gallery. And I want the thumbnail (links) to display the actual image beside it. Now so far I have that part working. But the issue is when I go that page in the first place. I want the first image to already be displayed and then I can continue clicking the others. But it simply doesn’t work. I’ve tried a number of different variations and I get a number of different problems…

Heres my code:

  • Album Cover
  • AlbumCD
  • Logo Designs
  • Snowboard Deck
<?php $pic = $HTTP_GET_VARS['pic']; if(!$pic) {$pic='Album';}?>


Its been really frustrating me and I would appreciate any help!