We are now ready to complete the uploading task begun in Chapter 4. The ultimate goal is to be able to retrieve the images and to display them, together with information about the images. However, there isn’t much information you can keep with the image file itself, so we use a database to store the information.
When working with the database, we’ll need to first make a connection to the database, which we started on in Chapter 5. In PHP, this connection is represented as a PHP object, which we use to manipulate ...