© Gunnard Engebreth, Satej Kumar Sahu 2023
G. Engebreth, S. K. SahuPHP 8 Basicshttps://doi.org/10.1007/978-1-4842-8082-9_10

10. PHP and MySQL Working Together

Gunnard Engebreth1   and Satej Kumar Sahu2
(1)
Madison, WI, USA
(2)
Bangalore, India
 

As you have seen so far, PHP is very capable and easy to manipulate and use to display data. Where does this data come from? There are two types of data that PHP can use: static and dynamic. We can think of static data as non-changing and dynamic as able-to-be-changed. This dynamic data is stored in a database. Simply put, a database is a structured organization of data. Think of a folder of spreadsheets. The key to databases, however, is that we can easily search or query a database based on how we have set up ...

Get PHP 8 Basics: For Programming and Web Development 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.