The user table stores 1 row of data related to specific user id, the image table could be as i have done in my example, a table that stores many rows of images to specific user, this is known as a one to many relationship. In my example, an image file name is "dog.jpg." You are also setting it asPrimary key,which means you can't have multiple images linked to one person. Is "different coloured socks" not correct? Making statements based on opinion; back them up with references or personal experience. echo ""; echo "