html and php uploads to website sql database
I need help with this one, I want to enable users who visit my website to upload files into the database on my webserver. I have an educational website where teachers can upload files to specified directories such as "grade 12 - geography - plate tectonics" and then they upload their pdf documents relating to e.g.. plate tectonics to that specific sub directory. Now I implemented a sql database with the same tables to facilitate the data, the question is, what should the html and php code look like that makes the uploads to the database possible?
This sounds very difficult to do and I have no idea where to start... and I am a teacher so my knowledge of html and php code is self taught and very limited...
Any help would be very welcome
Kind Regards Gabriel Roos