Book description
Practical PHP and MySQL Website Databases is a project-oriented book that demystifies building interactive, database-driven websites. The focus is on getting you up and running as quickly as possible. In the first two chapters you will set up your development and testing environment, and then build your first PHP and MySQL database-driven website. You will then increase its sophistication, security, and functionality throughout the course of the book. The PHP required is taught in context within each project so you can quickly learn how PHP integrates with MySQL to create powerful database-driven websites.
Each project is fully illustrated, so you will see clearly what you are building as you create your own database-driven website. You will build a form for registering users, and then build an interface so that an administrator can view and administer the user database. You will create a message board for users and a method for emailing them. You will also learn the best practices for ensuring that your website databases are secure. Later chapters describe how to create a blog, a product catalog, and a simple e-commerce site. You will also discover how to migrate a database to a remote host. Because you are building the interactive pages yourself, you will know exactly how the MySQL and PHP work, and you will be able to add database interactivity to your own websites with ease.
What you'll learn
Download and use a free development and test platform.
Create interactive database-driven websites.
Learn how to make website databases secure.
Create sophisticated projects, such as blogs and e-commerce sites.
Create user friendly and secure interfaces.
Migrate a site to a remote host.
Who this book is for
Practical PHP and MySQL Website Databases is for web developers who wish to begin designing database-driven websites. The book is an excellent choice for people who have HTML and CSS skills but would also like to learn MySQL and PHP. For readers who have little or no knowledge of PHP, the book will teach enough PHP to complete all the projects in the book. Web developers who are ready to move beyond the basics or who have not kept up-to-date with their MySQL and PHP knowledge will also benefit from Practical PHP and MySQL Website Databases. College and university I.T. teachers will find that Practical PHP and MySQL Website Databases is an excellent set text, the projects would form a basis for students to adapt for their course work.
Table of contents
- Title Page
- Dedication
- Contents at a Glance
- Contents
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- CHAPTER 1: Create and Test a MySQL Database and Table
-
CHAPTER 2: Create Web Pages That Interact with Users
- Create the Folder for Holding the Database Pages
- Create the Temporary Template
- Introducing the PHP include() Function
- Styling the Temporary Template
- The Interactive Version of the Template
- Connecting to the Database
- The PHP Keyword echo
- Styling the Form Fields
- Sticky Forms
- The Thank You Page
- Displaying Error Messages That Are Collected in an Array
- Viewing Members’ Records
- The View Users Page
- The Change Password Page
- Confirming a Successful Password Change
- Dealing with an Apostrophe
- Tutorial Dealing with the Apostrophe
- More About Arrays
- Summary
-
CHAPTER 3: Login/Logout for Members and an Administrator
- Create the Logindb Database and Table
- Tidy the Styling
- Remove or Replace Redundant Menu Buttons in the Headers
- The Registration Page and Undesirable Characters
- Differentiating Between Two Types of Membership
- Create User Levels to Limit Access to Private Pages
- Log In
- A Members-only Page
- Planning the Administrator’s Role
- A New Header for the Administration Page
- The Administrator’s Page
- The Logout Page
- Testing the Login/logout Function
- Amending and Deleting Individual Records
- Summary
-
CHAPTER 4: Display Membership Tables for the Administrator
- The Administration Database
- Revising the View Users Page to Include Editing and Deleting
- Displaying Pages of Records (Pagination)
- Planning the Search Criteria
- A Temporary Page for Displaying Specified Members
- The Search Form
- The Final Form Handler for Receiving Search Form Input
- Editing Records
- Summary
-
CHAPTER 5: Register Addresses and Phone Numbers
- Create a New Database and a Table with 17 Columns
- The Importance of Documentation
- Extend the Registration Form, and Add a Pull-down Menu
- Add PayPal Debit/Credit Card Images
- Include PayPal on the Thank You Page
- Register Some Members
- Amend the Administrator’s Header
- Apply Pagination to the admin_view_users Table
- Searching and Editing Records
- Searching for Members’ Addresses and Phone Numbers
- Summary
- CHAPTER 6: The Finishing Touches
- CHAPTER 7: Migrating to a Host and Backing Up Your Web Site Database
-
CHAPTER 8: Creating a Product Catalog
- Prepare the Database and Administration Plan
- Create a New Database
- Create the File for Connecting to the Database
- Security
- Creating a Home Page with Search Capability
- Displaying the Catalog
- The Header for the Page of Search Results
- Creating the Admin/Add a House Page
- The Header for the Administrator’s Page
- Administrator’s View of the Entire Stock of Houses for Sale
- The Administrator’s Search Page
- The Contact Us Page
- Summary
- CHAPTER 9: Adding Multiple Tables and Other Enhancements
-
CHAPTER 10: Creating a Message Board
- The Plan
- Create the Database
- Create the Tables
- Create the Template for the Message Board Web Site
- Create the Registration Form
- Register Some Members
- The Login Page
- Logging Out
- Creating a Gateway to the Two Categories of Quotes
- The Form for Posting Quotations
- Processing the Postings
- Post Some Quotations
- The Home Page
- Adding Search Facilities
- The Header for View Posts.php
- Search for Specific Words or Phrases
- Displaying the Search Results
- Enhancing the Message Board
- Summary
- CHAPTER 11: E-Commerce: A Brief Introduction
- CHAPTER 12: Troubleshooting Your Database-Driven Web Site
- APPENDIX: Appendix
- Index
Product information
- Title: Practical PHP and MySQL Website Databases: A Simplified Approach
- Author(s):
- Release date: December 2013
- Publisher(s): Apress
- ISBN: 9781430260769
You might also like
book
Learn JavaScript with p5.js: Coding for Visual Learners
Learn coding from scratch in a highly engaging and visual manner using the vastly popular JavaScript …
video
Introduction to ChatGPT and OpenAI
OpenAI ChatGPT is a powerful language model that uses advanced ML techniques to generate human-like text …
audiobook
Fall in Love with the Problem, Not the Solution
Unicorns-companies that reach a valuation of more than $1 billion-are rare. Uri Levine has built two. …
book
Clean Code in JavaScript
Get the most out of JavaScript for building web applications through a series of patterns, techniques, …