I created a database to hold files (.pdf, .xls, .doc etc.) and be retrievable later on from certain users. I manage to write the script to upload the files and it works just fine. My problem is that, the users upload files from different departments and I want to give them the option to select their department before uploading. Moreover, it will be easier for me to put them in a categorized format and return them back for downloading. In the upload table I have put Department_ID as my FK that references to the departments table. I tried different things but nothing worked. Could I have some help please? ??? ???