Product Overview

Looking for the old edition of “Build Your Own Database Driven Web Site Using PHP & MySQL, 4th Edition?
Download the code archive or view errata of the old edition here.

Build Your Own Database Driven Web Site, 4th Edition

Table Of Contents

- Here's a look at the table of contents:

  1. Preface
    • Who Should Read This Book
    • What’s in This Book
    • Where to Find Help
      • The SitePoint Forums
      • The Book’s Web Site
    • The SitePoint Newsletters
    • Your Feedback
    • Conventions Used in This Book
      • Code Samples
      • Tips, Notes, and Warnings
  2. Installation
    • Your Own Web Server
    • Windows Installation
      • All-in-one Installation
      • Installing Individual Packages
    • Mac OS X Installation
      • All-in-one Installation
      • Installing Individual Packages
    • Linux Installation
      • Installing MySQL
      • Installing PHP
    • Post-Installation Set-up Tasks
    • What to Ask Your Web Host
    • Your First PHP Script
    • Full Toolbox, Dirty Hands
  3. Introducing MySQL
    • An Introduction to Databases
    • Logging On to MySQL
    • Structured Query Language
    • Creating a Database
    • Creating a Table
    • Inserting Data into a Table
    • Viewing Stored Data
    • Modifying Stored Data
    • Deleting Stored Data
    • Let PHP Do the Typing
  4. Introducing PHP
    • Basic Syntax and Statements
    • Variables, Operators, and Comments
    • Arrays
    • User Interaction and Forms
    • Control Structures
    • Hiding the Seams
      • Avoid Advertising Your Technology Choices
      • Use PHP Templates
      • Many Templates, One Controller
    • Bring On the Database
  5. Publishing MySQL Data on the Web
    • The Big Picture
    • Connecting to MySQL with PHP
    • Sending SQL Queries with PHP
    • Handling SELECT Result Sets
    • Inserting Data into the Database
    • Deleting Data from the Database
    • Mission Accomplished
  6. Relational Database Design
    • Giving Credit Where Credit is Due
    • Rule of Thumb: Keep Entities Separate
    • SELECT with Multiple Tables
    • Simple Relationships
    • Many-to-Many Relationships
    • One for Many, and Many for One
  7. Structured PHP Programming
    • Include Files
      • Including HTML Content
      • Including PHP Code
      • Types of Includes
      • Shared Include Files
    • Custom Functions and Function Libraries
      • Variable Scope and Global Access
    • Structure in Practice: Template Helpers
    • The Best Way
  8. A Content Management System
    • The Front Page
    • Managing Authors
      • Deleting Authors
      • Adding and Editing Authors
    • Managing Categories
    • Managing Jokes
      • Searching for Jokes
      • Adding and Editing Jokes
      • Deleting Jokes
    • Summary
  9. Content Formatting with Regular Expressions
    • Regular Expressions
    • String Replacement with Regular Expressions
      • Boldface and Italic Text
      • Paragraphs
      • Hyperlinks
      • Matching Tags
      • Putting It All Together
    • Real World Content Submission
  10. Cookies, Sessions, and Access Control
    • Cookies
    • PHP Sessions
      • A Simple Shopping Cart
    • Access Control
      • Database Design
      • Controller Code
      • Function Library
      • Managing Passwords and Roles
      • A Challenge: Joke Moderation
    • The Sky’s the Limit
  11. MySQL Administration
    • phpMyAdmin
    • Backing Up MySQL Databases
      • Database Backups Using mysqldump
      • Incremental Backups Using Binary Logs
    • MySQL Access Control
      • Granting Privileges
      • Revoking Privileges
      • Access Control Tips
      • Locked Out?
    • Checking and Repairing MySQL Data Files
    • Better Safe than Sorry
  12. Advanced SQL Queries
    • Sorting SELECT Query Results
    • Setting LIMITs
    • LOCKing TABLES
    • Column and Table Name Aliases
    • GROUPing SELECT Results
    • LEFT JOINs
    • Limiting Results with HAVING
    • Further Reading
  13. Binary Data
    • Semi-dynamic Pages
    • Handling File Uploads
      • Assigning Unique Filenames
    • Recording Uploaded Files in the Database
      • Binary Column Types
      • Storing Files
      • Viewing Stored Files
    • Putting It All Together
    • Large File Considerations
      • MySQL Packet Size
      • PHP Script Timeout
    • The End
  14. A. MySQL Syntax Reference
    • SQL Statements Implemented in MySQL
      • ALTER TABLE
      • ANALYZE TABLE
      • CREATE DATABASE
      • CREATE INDEX
      • CREATE TABLE
      • DELETE
      • DESCRIBE/DESC
      • DROP DATABASE
      • DROP INDEX
      • DROP TABLE
      • EXPLAIN
      • GRANT
      • INSERT
      • LOAD DATA INFILE
      • LOCK/UNLOCK TABLES
      • OPTIMIZE TABLE
      • RENAME TABLE
      • REPLACE
      • REVOKE
      • SELECT
      • SET
      • SHOW
      • TRUNCATE
      • UNLOCK TABLES
      • UPDATE
      • USE
  15. B. MySQL Functions
    • Control Flow Functions
    • Mathematical Functions
    • String Functions
    • Date and Time Functions
    • Miscellaneous Functions
    • Functions for Use with GROUP BY Clauses
  16. C. MySQL Column Types
    • Numerical Types
    • Character Types
    • Date/Time Types
  17. D. PHP Functions for Working with MySQL
    • Common PHP mysqli_* Functions
      • mysqli_affected_rows
      • mysqli_character_set_name
      • mysqli_close
      • mysqli_connect
      • mysqli_connect_errno
      • mysqli_connect_error
      • mysqli_data_seek
      • mysqli_errno
      • mysqli_error
      • mysqli_fetch_all
      • mysqli_fetch_array
      • mysqli_fetch_assoc
      • mysqli_fetch_field
      • mysqli_fetch_field_direct
      • mysqli_fetch_fields
      • mysqli_fetch_lengths
      • mysqli_fetch_object
      • mysqli_fetch_row
      • mysqli_field_count
      • mysqli_field_seek
      • mysqli_field_tell
      • mysqli_free_result
      • mysqli_get_client_info
      • mysqli_get_client_version
      • mysqli_get_host_info
      • mysqli_get_proto_info
      • mysqli_get_server_info
      • mysqli_get_server_version
      • mysqli_info
      • mysqli_insert_id
      • mysqli_num_fields
      • mysqli_num_rows
      • mysqli_ping
      • mysqli_query
      • mysqli_real_escape_string
      • mysqli_real_query
      • mysqli_select_db
      • mysqli_set_charset
      • mysqli_stat
      • mysqli_store_result
      • mysqli_thread_id
      • mysqli_use_result
  18. Index
  19. Now that you realize this book can advance you … how can you possibly go wrong investing $29.95 on something that can dramatically change the course of your career?



    Instant Download!
    This title available in Adobe PDF, Kindle (mobi) and ePub (IOS) formats

SitePoint Books

  • advocate best practice techniques
  • lead you through practical examples
  • provide working code for your web site
  • make learning easy and fun

100% Money Back Guarantee