no! don't panic!
look at your php code, above. you've got "images/photos" hardcoded in there. start by making its value the variable you pass in from the URL.
then simplify your code to display only what's in that directory. for each image you're putting to the screen, make sure its URL conforms to what you're coding to. i.e. the page will have links to itself, but with different values for the variable.
so instead of:
http://69.68.181.132/~joetalerico/gallery.php
you'd have something like:
http://69.68.181.132/~joetalerico/gallery.php?display_dir="images/photos/house"
...and then, when the user clicked on the directory for kitchen...
http://69.68.181.132/~joetalerico/gallery.php?display_dir="images/photos/house/kitchen"
does that make sense?
look at your php code, above. you've got "images/photos" hardcoded in there. start by making its value the variable you pass in from the URL.
then simplify your code to display only what's in that directory. for each image you're putting to the screen, make sure its URL conforms to what you're coding to. i.e. the page will have links to itself, but with different values for the variable.
so instead of:
http://69.68.181.132/~joetalerico/gallery.php
you'd have something like:
http://69.68.181.132/~joetalerico/gallery.php?display_dir="images/photos/house"
...and then, when the user clicked on the directory for kitchen...
http://69.68.181.132/~joetalerico/gallery.php?display_dir="images/photos/house/kitchen"
does that make sense?