It occurred to me that you may be over complicating things. Could the filenames for UV photos not be added as an extra column to the main table? If that's acceptable you would have the filename available in the previous page and could pass that through the session variable instead of the species_name. If, for whatever reason, the additional table is preferable; you can still have the filename available by using a JOIN query in the previous page. Either way this would save you doing a separate lookup for the filename. -- Niel Archer -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php