Uploading image file to a folder using php and saving its location in mysql database. This code saves image file path in the database and displays it on a browser. What you need is a local server and a reliable web browser for this to work , Then follow all steps.