peuge Posted June 25, 2008 Share Posted June 25, 2008 Ok so I am making a picture gallery which comprises of a table with 3 columns next to each other. 1st column displays a category menu (menu.php) 2nd column displays a big picture 3rd column displays the thumbs of the selected category. (thumbs.php) The table is set out in gallery.php which includes menu and thumbs where appropriate. Now I have my code working so that when I click a category it gets all the pics in that category and opens up thumbs.php which displays the pictures in that category as thumbs. What I am really wanting is for when I click the category it opens up thumbs.php but on the same page in column 3. menu.php sends data to thumbs.php depending on the link clicked echo '<a href="thumbs.php?dir=' . $j . '" target="_parent">' . $i . '</a>'; ** $j is the name of the catagory directory thumbs.php then gets all the files in that directory and displays them. echo '<td align="center" ><a href="gallery.php?var=' . $var . '" target="_parent"><img border = "0" src="' . $images . $cat . $file . '" /></a></td>'; The above link is for each thumb which when clicks opens a large picture (this works) Any help much appreciated. Hope I made myself clear? Thanks Link to comment https://forums.phpfreaks.com/topic/111827-tables-and-php-help-please/ Share on other sites More sharing options...
peuge Posted June 25, 2008 Author Share Posted June 25, 2008 Figured it out incase anyone was looking (doesnt seem like it) I sent from menu.php to gallery instead of sending to thumbs. Then right before I included thumbs.php I did a $_GET['dir'] and it worked! Link to comment https://forums.phpfreaks.com/topic/111827-tables-and-php-help-please/#findComment-574042 Share on other sites More sharing options...
peuge Posted June 25, 2008 Author Share Posted June 25, 2008 Ok so got the menu to show the pictures in each category in thumbs.php without leaving gallery.php. But now when I click on a thumb it opens this big picture but looses all the thumbs? Link to comment https://forums.phpfreaks.com/topic/111827-tables-and-php-help-please/#findComment-574061 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.