title: Simple function that stores images through a specific folder of the web application and retrieve it?
body: <p>I am using WAMP and i have a table in my database that needs id,name,pathphoto,and etc.
  I have a folder in my web application that stores all the photos of the users. And every user can upload a single photo of them and stores it in a specific folder, when users logged in, the photo that match the user will display in user's main page I am using html for my front-end and PHP for my back-end. And if the user decides to change the photo automatically the new photo will overwrite or removed the old photo of the user. What functions to use in this? I need all your suggestions or advice. Thank you.</p>