Skip to Content
PHP and MySQL® Web Development, Fifth Edition
book

PHP and MySQL® Web Development, Fifth Edition

by Luke Welling, Laura Thomson
September 2016
Intermediate to advanced
688 pages
19h 38m
English
Addison-Wesley Professional
Content preview from PHP and MySQL® Web Development, Fifth Edition

11. Accessing Your MySQL Database from the Web with PHP

Previously, in our work with PHP, we used a flat file to store and retrieve data. When we looked at this file in Chapter 2, “Storing and Retrieving Data,” we mentioned that relational database systems make a lot of these storage and retrieval tasks easier, safer, and more efficient in a web application. Now, having worked with MySQL to create a database, we can begin connecting this database to a web-based front end.

In this chapter, we explain how to access the Book-O-Rama database from the web using PHP. You learn how to read from and write to the database and how to filter potentially troublesome input data.

Key topics covered in this chapter include

How web database architectures work ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

PHP and MySQL Web Development, Third Edition

PHP and MySQL Web Development, Third Edition

Luke Welling, Laura Thomson
Learning PHP 5

Learning PHP 5

David Sklar

Publisher Resources

ISBN: 9780133038644Purchase book