Web Database Applications with PHP and MySQL 2E

( 1 )

Overview

There are many reasons for serving up dynamic content from a web site: to offer an online shopping site, create customized information pages for users, or just manage a large volume of content through a database. Anyone with a modest knowledge of HTML and web site management can learn to create dynamic content through the PHP programming language and the MySQL database. This book gives you the background and tools to do the job safely and reliably.Web Database Applications with PHP and MySQL, Second Edition ...

See more details below
Paperback (Second Edition)
$36.54
BN.com price
(Save 26%)$49.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (53) from $1.99   
  • New (8) from $28.50   
  • Used (45) from $1.99   
Web Database Applications with PHP and MySQL

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK for Web

Want a NOOK? Explore Now

NOOK Book (eBook)
$22.99
BN.com price
(Save 42%)$39.99 List Price

Overview

There are many reasons for serving up dynamic content from a web site: to offer an online shopping site, create customized information pages for users, or just manage a large volume of content through a database. Anyone with a modest knowledge of HTML and web site management can learn to create dynamic content through the PHP programming language and the MySQL database. This book gives you the background and tools to do the job safely and reliably.Web Database Applications with PHP and MySQL, Second Edition thoroughly reflects the needs of real-world applications. It goes into detail on such practical issues as validating input (do you know what a proper credit card number looks like?), logging in users, and using templatesto give your dynamic web pages a standard look.But this book goes even further. It shows how JavaScript and PHP can be used in tandem to make a user's experience faster and more pleasant. It shows the correct way to handle errors in user input so that a site looks professional. It introduces the vast collection of powerful tools available in the PEAR repository and shows how to use some of the most popular tools.Even while it serves as an introduction to new programmers, the book does not omit critical tasks that web sites require. For instance, every site that allows updates must handle the possibility of multiple users accessing data at the same time. This book explains how to solve the problem in detail with locking.Through a sophisticated sample application—Hugh and Dave's Wine Store—all the important techniques of dynamic content are introduced. Good design is emphasized, such as dividing logic from presentation. The book introduces PHP 5 and MySQL 4.1 features, while providing techniques that can be used on older versions of the software that are still in widespread use.This new edition has been redesigned around the rich offerings of PEAR. Several of these, including the Template package and the database-independent query API, are fully integrated into examples and thoroughly described in the text. Topics include:

  • Installation and configuration of Apache, MySQL, and PHP on Unix®, Windows®, and Mac OS® X systems
  • Introductions to PHP, SQL, and MySQL administration
  • Session management, including the use of a custom database for improved efficiency
  • User input validation, security, and authentication
  • The PEAR repository, plus details on the use of PEAR DB and Template classes
  • Production of PDF reports
Read More Show Less

Product Details

  • ISBN-13: 9780596005436
  • Publisher: O'Reilly Media, Incorporated
  • Publication date: 5/1/2004
  • Edition description: Second Edition
  • Edition number: 2
  • Pages: 820
  • Sales rank: 1,365,976
  • Product dimensions: 9.10 (w) x 10.92 (h) x 1.44 (d)

Meet the Author

Hugh E. Williams is a software design engineer at Microsoft's Windows Live Search in Redmond, WA. Previously, he was the Associate Professor in Information Retrieval at RMIT University in Melbourne, Australia. He's published over 70 research papers and holds around 10 patents, mostly in the search engine area. When not at work Hugh likes to hang out with his family, exercise, watch Richmond play footy, and learn about baseball. Hugh has a PhD from RMIT University. His home page is http://hughwilliams.com.

Since the mid 1990s David Lane has worked as a software engineer and IT manager with the Multimedia Database Systems group at RMIT University in Melbourne, Australia. In that group he has helped to develop and commercialize the Structured Information Manager, a large-scale SGML/XML document repository and a high performance Web server. David has also worked with Australia's largest telecommunications company, Telstra, in areas as diverse as Satellite Communications, Human Factors Research, and Electronic Document Interchange (EDI). David has a Bachelor's degree in Applied Science (majoring in mathematics and computer science) from Swinburne University.

Read More Show Less

Table of Contents

Preface;
What This Book Is About;
What You Need to Know;
How This Book Is Organized;
How to Use This Book;
Conventions Used in This Book;
Using Code Examples;
How to Contact Us;
Web Site and Code Examples;
Acknowledgments;
Chapter 1: Database Applications and the Web;
1.1 The Web;
1.2 Three-Tier Architectures;
Chapter 2: The PHP Scripting Language;
2.1 Introducing PHP;
2.2 Conditions and Branches;
2.3 Loops;
2.4 Functions;
2.5 Working with Types;
2.6 User-Defined Functions;
2.7 A Working Example;
Chapter 3: Arrays, Strings, and Advanced Data Manipulation in PHP;
3.1 Arrays;
3.2 Strings;
3.3 Regular Expressions;
3.4 Dates and Times;
3.5 Integers and Floats;
Chapter 4: Introduction to Object-Oriented Programming with PHP 5;
4.1 Classes and Objects;
4.2 Inheritance;
4.3 Throwing and Catching Exceptions;
Chapter 5: SQL and MySQL;
5.1 Database Basics;
5.2 MySQL Command Interpreter;
5.3 Managing Databases and Tables;
5.4 Inserting, Updating, and Deleting Data;
5.5 Querying with SQL SELECT;
5.6 Join Queries;
5.7 Case Study: Adding a New Wine;
Chapter 6: Querying Web Databases;
6.1 Querying a MySQL Database Using PHP;
6.2 Processing User Input;
6.3 MySQL Function Reference;
Chapter 7: PEAR;
7.1 Overview;
7.2 Core Components;
7.3 Packages;
Chapter 8: Writing to Web Databases;
8.1 Database Inserts, Updates, and Deletes;
8.2 Issues in Writing Data to Databases;
Chapter 9: Validation with PHP and JavaScript;
9.1 Validation and Error Reporting Principles;
9.2 Server-Side Validation with PHP;
9.3 JavaScript and Client-Side Validation;
Chapter 10: Sessions;
10.1 Introducing Session Management;
10.2 PHP Session Management;
10.3 Case Study: Using Sessions in Validation;
10.4 When to Use Sessions;
10.5 PHP Session API and Configuration;
Chapter 11: Authentication and Security;
11.1 HTTP Authentication;
11.2 HTTP Authentication with PHP;
11.3 Form-Based Authentication;
11.4 Protecting Data on the Web;
Chapter 12: Errors, Debugging, and Deployment;
12.1 Errors;
12.2 Common Programming Errors;
12.3 Custom Error Handlers;
Chapter 13: Reporting;
13.1 Creating a Report;
13.2 Producing PDF;
13.3 PDF-PHP Reference;
Chapter 14: Advanced Features of Object-Oriented Programming in PHP 5;
14.1 Working with Class Hierarchies;
14.2 Class Type Hints;
14.3 Abstract Classes and Interfaces;
14.4 Freight Calculator Example;
Chapter 15: Advanced SQL;
15.1 Exploring with SHOW;
15.2 Advanced Querying;
15.3 Manipulating Data and Databases;
15.4 Functions;
15.5 Automating Querying;
15.6 Table Types;
15.7 Backup and Recovery;
15.8 Managing Users and Privileges;
15.9 Tuning MySQL;
Chapter 16: Hugh and Dave's Online Wines:A Case Study;
16.1 Functional and System Requirements;
16.2 Application Overview;
16.3 Common Components;
Chapter 17: Managing Customers;
17.1 Code Overview;
17.2 Customer Validation;
17.3 The Customer Form;
Chapter 18: The Shopping Cart;
18.1 Code Overview;
18.2 The Winestore Home Page;
18.3 The Shopping Cart Implementation;
Chapter 19: Ordering and Shipping at the Online Winestore;
19.1 Code Overview;
19.2 Credit Card and Shipping Instructions;
19.3 Finalizing Orders;
19.4 HTML and Email Receipts;
Chapter 20: Searching and Authentication in the Online Winestore;
20.1 Code Overview;
20.2 Searching and Browsing;
20.3 Authentication;
Appendix A: Linux Installation Guide;
A.1 Finding Out What's Installed;
A.2 Installation Overview;
A.3 Installing MySQL;
A.4 Installing Apache;
A.5 Installing PHP;
A.6 What's Needed for This Book;
Appendix B: Microsoft Windows Installation Guide;
B.1 Installation Overview;
B.2 Installing with EasyPHP;
B.3 What's Needed for This Book;
Appendix C: Mac OS X Installation Guide;
C.1 Getting Started;
C.2 Installing MySQL;
C.3 Setting Up Apache and PHP;
C.4 What's Needed for This Book;
Appendix D: Web Protocols;
D.1 Network Basics;
D.2 Hypertext Transfer Protocol;
Appendix E: Modeling and Designing Relational Databases;
E.1 The Relational Model;
E.2 Entity-Relationship Modeling;
Appendix F: Managing Sessions in theDatabase Tier;
F.1 Using a Database to Keep State;
F.2 PHP Session Management;
F.3 MySQL Session Store;
Appendix G: Resources;
G.1 Client Tier Resources;
G.2 Middle-Tier Resources;
G.3 Database Tier Resources;
G.4 Security and Cryptography Resources;
Appendix H: The Improved MySQL Library;
H.1 New Features;
H.2 Getting Started;
H.3 Using the New Features;
Colophon;

Read More Show Less

Customer Reviews

Average Rating 5
( 1 )
Rating Distribution

5 Star

(1)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 3 Customer Reviews
  • Posted June 23, 2010

    more from this reviewer

    I am a PHP newb, but not so much.

    First of all I should admit again, I am a total PHP newb. However, thanks to this book I feel I can start doing some really ... really, really, cool stuff with PHP and MySQL. I use Joomla!, and I am happy with ... but now when it comes to making changes I am going to have a much firmer grasp on what is going on. Thanks O'Reilly. I really love your books!!

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted July 8, 2011

    No text was provided for this review.

  • Anonymous

    Posted March 24, 2012

    No text was provided for this review.

Sort by: Showing all of 3 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)