Do you mean there is still a problem or not? What do you mean by saying "only text"?
Your code checks all graphic files in the directory /$SAVE_DIRECTORY/$rec{$db_key} and stores them in the array @photo. In other words, @photo contains a list of all found graphic files. The code I suggested then checks whether such a list exists - i.e. if graphic files were found in the directory -, and, if so, prints them all with a "<br>" in between.
kellner
Your code checks all graphic files in the directory /$SAVE_DIRECTORY/$rec{$db_key} and stores them in the array @photo. In other words, @photo contains a list of all found graphic files. The code I suggested then checks whether such a list exists - i.e. if graphic files were found in the directory -, and, if so, prints them all with a "<br>" in between.
kellner