April 2026
Intermediate
1009 pages
34h 15m
English
As usual, no matter which database you use, the steps are always the same. First you need to know how a connection is established in the first place, then how to submit queries and how to access any return values (e.g., for SELECT). Finally, it is always worth looking at the special features of the database or, as in this case, the extension. For this reason, we will proceed exactly in this order throughout this section.
To establish a connection to a database with PDO, you need a so-called data source name (DSN). This is a character string that contains all the data at once: type of database, URL (server or file name), connection options, and other parameters. You use such a DSN to ...
Read now
Unlock full access