Hi

I'm a beginner with PHP and MySQL and would like to add a function to a website that lets registered users upload an avatar picture of themselves and store the path in MySQL.

Then have a page which displays back the correct image for whoever is logged in.

I created 2 mySQL tables, users & images

Users table fields - username (is PK), name, password
images table fields - imageID...