The following code given to me in another forum, as a "simple photo gallery" code, but I'm still experiencing problems with it. I don't know how to make the two pages interact correctly. I am assuming the [REF] etc sections are causing the problems, but I don't know what they need to be replaced with to pull the relevant info from the database. Any thoughts?
Current page: http://www.equinefocus.co.uk/personal/gallery.php
I am aiming for this sort of format: http://www.equinefocus.co.uk/personal/sample_gallery.htm