Hi There,
I’m looking to redevelop my photography site using php and mysql. I have done basic work in php and mysql, but am now finding myself stuck with writing the code for the following idea…
I am planning on producing a photo gallery, with 15 thumbnails per page, in the following format:
http://www.equinefocus.co.uk/personal/sample_gallery.htm
If clicking the thumbnail, I would want the large version of the image to open up.
I have the relevant details in my database, as shown in this screenshot:
http://www.equinefocus.co.uk/personal/database_info.jpg
Questions
- I have previously used the following piece of code to turn a date into a link - can this be adapted to turn the thumbnail into a link too?
<a href="<?php echo $info['url']; ?>"><?php echo $info['date']; ?></a>
- How would I achieve the table layout I want in terms of outputting the mysql data?
Any assistance would be appreciated, as would any redirection to suitable tutorials. I have googled it, but the pages I have looked at generally refer to using php for resizing of images, which is not needed for me. Many thanks!
[ul][/ul]