As in the image above ,I have images that are organized in virtual folders(in
If the "files" you want to add to your zip directory are stored in a db as strings, you could use ZipArchive::addFromString. If the db stores pointers to actual files use ZipArchive::addFile