I currently have a PHP MySQL login system set up from one of the video tutorials, and unfortunately there seems to be an issue with the edit profile picture script. When I try to upload a profile picture it always returns the following error:
There was an error uploading the file, please try again. If it continually fails, contact us by email.
I would like it if you could give me a solution to the problem and tell me where I'm going wrong. The whole script is below:
session_start(); // Must start session first thing