Jump to content

Tables and php, help please?


peuge

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.