Let say we have 3 files in folder myFolder. How can I put this number in a datbase?
I alrready can count files in a folder and that is than specified in the variable $files.
I need this in a database because i want to sort the whole table by NUMBER_OF_FILES ASC or DESC.
do i have to count the files in a folder eacht time user loads a page and than assign that number over and over again to the NUMBER_OF_FILES column? Or do I have other options?
Thank you very much!