Web Database Applications with PHP & MySQL, 2nd Edition
- Media: Book (Paperback, 680 pages)
- ISBN: 0596005431
- Publisher: O'Reilly Media, Inc.
- Release Date: May 16, 2004
Product Description
"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 templates
to 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 introducesPHP 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(R), Windows(R), and Mac OS(R) 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
Good Book, Serious ERRORS
However, I cannot evaluate the application presented because the appendix on installing Easy PHP on Microsoft Windows has SO MANY ERRORS that I simply cannot get this software running. In particular the PEAR installation instructions are just completely wrong.
I will try a Linux environment next, since I can debug better in that environment.
MySQl-PHP textbook
I wish there was a section on MySQL commands.
I really like this book
One thing that seems strange, that I'm hoping someone can clarify:
In the section of chapter 8 dealing with transactions and concurrency, there is no mention of setting transaction isolation levels (SET TRANSACTION ISOLATION LEVEL command in MySQL). Instead, concurrency is achieved solely by setting table locks.
I can sort of understand this in that the authors are using MyISAM tables. But why no mention of transaction isolation levels using INNODB tables, given that this is the more standard way of dealing with concurrency issues?
Fairly Useful
However, it falls way short as a reference tool and could have included a more comprehensive list of mysql functions.







