php question...can you give me idea on how to do it...?

Mary Ann

New member
Screenshot#1
MY PICTURE GALLERY
Click here for Gallery 1
Click here for Gallery 2
Click here for Gallery 3
Click here for Gallery 4
Click here for Gallery 5

Using loop statement I made this…

<?php
$ctr=0;
echo "<h1 align=center>MY PICTURE GALLERY</h1>";
echo "<table align=center>";
for($y=1;$y<=4;$y++){
echo "<tr>";
$ctr++;
echo "<td><a href='Gallery".$ctr.".php'><font size=5>Click here for Gallery$ctr</a></td>";

echo "</tr>";
}//forLoop
echo "</table>";
?>

Now the second screenshot should be like this
My Picture Gallery
xxxxxxx | xxxxxxx | xxxxxxx
PIC1.jpg | PIC2.JPG | PIC3.JPG
xxxxxxx | xxxxxxx | xxxxxxx
PIC4.jpg | PIC5.JPG | PIC6.JPG

The xxxx are actual pictures…
For gallery1, display pic1 to pic6, for gallery2, display pic7 to pic12 and so on.
Make each picture clickable and its caption below. Display the original size of the picture when either the thumbnail picture or the caption was click.
You can make use of the condition statement (IF) if necessary.

Can you give me an idea on how to do this…I know how to do the pictures using loop in table, but not with the caption….
 
Back
Top