I want to download files that I have uploaded on the server, in a .zip file using PHP. The files are not placed in the same folder.
The folders are named like this : idClub.'-'.idEvent.'-'.idOrderItem
.
IdClub and idEvent are always the same, and it's idOrderItem that change.
We can get orderItem ids from this query :
select idOrderItem from order_item when idEvent = $idEvent
$idEvent : is a parameter given to the function that downloads the files.
So is the there an example of script ?