© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
M. SimonAn Introduction to PHP https://doi.org/10.1007/979-8-8688-0177-8_9

9. Managing Data

Mark Simon1  
(1)
Ivanhoe VIC, VIC, Australia
 
When it comes to working with data, there are four main operations. In SQL, these operations are
  • INSERT: Add data to a database table.

  • SELECT: Read data from one or more tables.

  • UPDATE: Change existing data.

  • DELETE: Delete one or more rows from a table.

When we added the image data, we used the INSERT statement. When we created the image gallery, it was the SELECT statement.

In this chapter, we will look at maintaining the image data. This will involve all of the major SQL statements, including UPDATE and DELETE.

As with inserting ...

Get An Introduction to PHP : Learn PHP 8 to Create Dynamic Websites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.