PHP Solutions

Chapter 13

The theme of this chapter is managing content.

The exercises deal with creating, displaying, and managing the "blog" portion of the Japan Journey site.

Missing section numbers are the result of this book having three different ways to work with databases. I'm working with PDO so that's what's shown here.

Solution Index

Solution 13-3
Inserting a new record with PDO
Connecting to the database and inserting a new record.
Solution 13-4
Creating links to the update and delete pages
Inserting a new record will redirect you to a list of all the records in the database or display a message if the database is empty. The update and delete functions do not work yet.
Go directly to entry list.
Solution 13-7
Updating a record with PDO
Now the EDIT and DELETE functions work. Try it!
Go directly to entry list.