Assuming all your pages are already connected to your SQL database, how would you

1. Upload a photo, save to a specified folder & save photo location to database

2. Display that photo on a second page.

At any time, you should be able to go back to page 1, upload a new photo which will in turn replace the old photo, update the database and update the photo displayed on page 2.

I searched and searched but couldnt find much on it. Any help would be greatly appreciated. Thanks!