Book description
PHP & MySQL: Novice to Ninja, 7th Edition is a hands-on guide to learning all the tools, principles, and techniques needed to build a professional web application using PHP & MySQL. Comprehensively updated to cover PHP 8 and modern best practice, this highly practical and fun book covers everything from installation through to creating a complete online content management system.
- Gain a thorough understanding of PHP syntax
- Master database design principles and SQL
- Write robust, maintainable, best practice code
- Build a working content management system (CMS)
- And much more!
Publisher resources
Table of contents
- PHP & MySQL: Novice to Ninja, 7th Edition
- Notice of Rights
- Notice of Liability
- Trademark Notice
- About SitePoint
- About the Author
-
Preface
- Who Should Read This Book
- Programming Has Changed
- It Takes 10,000 Hours to Become an Expert
- Resist the Temptation to Skip Ahead
- The Concorde Fallacy
- You’re Not Learning PHP
- Getting Braces and Semicolons in the Right Place Is the Easy Part
- You Won’t Get Anything Done by Planning
- Conventions Used
- Where to Find Help
- Your Feedback
- Let’s Go
- Chapter 1: Installation
- Chapter 2: Introducing PHP
- Chapter 3: Introducing MySQL
-
Chapter 4: Publishing MySQL Data on the Web
- The Big Picture
- Creating a MySQL User Account
- Connecting to MySQL with PHP
- A Crash Course in Object-oriented Programming
- Sending SQL Queries with PHP
- Handling SELECT Result Sets
- Thinking Ahead
- Inserting Data into the Database
- Magic Quotes
- Prepared Statements
- Deleting Data from the Database
- Mission Accomplished
- Chapter 5: Relational Database Design
- Chapter 6: Structured PHP Programming
- Chapter 7: Improving the Insert and Update Functions
-
Chapter 8: Objects and Classes
- Time for Class
- Public vs Private
- Protected
- Objects
- Class Variables
- Constructors
- Type Hinting
- Private Variables
- Constructor Property Promotion
- Using the DatabaseTable Class
- Updating the Controller to Use the Class
- DRY
- Creating a Controller Class
- Single Entry Point
- Keeping it DRY
- Template Variables
- Be Careful with extract
- Summary
- Chapter 9: Creating an Extensible Framework
- Chapter 10: Allowing Users to Register Accounts
- Chapter 11: Cookies, Sessions, and Access Control
- Chapter 12: Relationships
- Chapter 13: Content Formatting and Pagination
Product information
- Title: PHP & MySQL: Novice to Ninja, 7th Edition
- Author(s):
- Release date: February 2022
- Publisher(s): SitePoint
- ISBN: 9781925836462
You might also like
book
Learning PHP, MySQL & JavaScript, 7th Edition
Build interactive, data-driven websites with the potent combination of open source technologies and web standards, even …
book
Learning PHP, MySQL & JavaScript, 6th Edition
Build interactive, data-driven websites with the potent combination of open source technologies and web standards, even …
book
Learning MySQL, 2nd Edition
Get a comprehensive overview on how to set up and design an effective database with MySQL. …
video
PHP Crash Course: Learn PHP in 90 Minutes
This PHP course is designed to get you started quickly with the fundamentals of PHP and …