Basically all i need to do is make it so a picture can be uploaded via a webinterface and then inserted into mySQL to be displayed with that record on the output, i understand that i just have to add the filename to the db and then how to display it and all that, i'm not so sure how to upload it and get the filename.

Any help would be appreciated. Thanks.