lord2800: Look at the code for this page and tell me how we can get the gallery name up in this cell of the table.
Invalid directory!'."\r\n"; else { echo '

Galleries in '.($f == '.' ? 'the main folder' : basename($f))."

\r\n"; $folderhtml = ''; $picturehtml = ''; $folders = scandir(PHOTO_DIR . '/' . $f); foreach($folders as $folder) { if(is_dir(PHOTO_DIR . '/' . $f . '/' . $folder) && $folder{0} != '.') { $folderhtml .= '
  • '.htmlentities($folder)."
  • \r\n"; } else if(is_file(PHOTO_DIR . '/' . $f . '/' . $folder) && preg_match("/.+\.(jpe?g|png|gif)$/i", $folder, $type)) { $type = $type[1]; $picturehtml .= '
    '.$folder.'
    '. substr($folder, 0, strrpos($folder, '.')) .'
    '."\r\n"; } } echo '
      ' . $folderhtml . '


    '; echo $picturehtml; } ?>