I am building a page that will display the logged in users information, primarily their uploaded avatar and/or profile image. I successfully created the upload script that will take the image and move it to a folder called "uploads" in my directory. I even achieved the upload automatically renaming the file to something unique, like the user's email address.
Now I have a page called "my_account.php" in which I want to display that image, but not all images in the folder. I only want the one that is unique to the current logged in user. My method of achieving this could be totally off, which is why I would appreciate any help I can get.
That seems to work perfectly for me (not saying it's the best or cleanest method), but it gets the file over to the folder I want and renames it.
Now on my "my_account.php" page, I am trying to display that image for the logged in user (who's login id is their email address as well as the images name now too). This is where I get stuck. The current code I have is this...