Discover how to create a PHP program that uses MySQL to store and manage your book database with a step-by-step commented example.
The program's features include saving a new record, displaying records for selection, choosing a record and presenting its details, updating a record, deleting a record, and searching for records. Once you learn the techniques covered in this program, you'll be able to create any PHP-MySQL-based applications.
This package is ideal for those who want to learn the following:
1. How functions are created and used in PHP
2. How to utilize HTML forms to send data to a PHP script
3. How to efficiently retrieve the data sent by an HTML form in a PHP script
4. How to separate PHP code from HTML and CSS files
5. How to showcase PHP-generated content in HTML forms
6. How to use PHP include files to prevent unwanted code repetition
7. How variables defined outside the function are used in PHP functions
8. How variables can be passed into functions in PHP for use within the function
9. How to return variable values to the calling program in PHP functions.
10. How to connect to a MySQL database in PHP, run a query, return query results, and determine the number of rows returned in the query result.
11. How to dynamically populate an HTML form selection list with data returned from a MySQL query.
12. How to use regular expressions to validate particular data inputs
13. How to redirect to another PHP script in a PHP script
14. How to avoid issues with query strings by employing str_replace and addslashes.
15. How to construct SQL queries that include PHP variables.
16. How to use PHP to handle HTML form input errors and report them to the user.
Version 1.1: N/A