Specifications
PHP AND MYSQL WEB DEVELOPMENT
23 Debugging 477
Programming Errors ..........................................................................478
Syntax Errors ................................................................................478
Runtime Errors ..............................................................................480
Logic Errors ..................................................................................485
Variable Debugging Aid ....................................................................486
Error Reporting Levels ......................................................................489
Altering the Error Reporting Settings ................................................490
Triggering Your Own Errors ..............................................................492
Handling Errors Gracefully ................................................................492
Remote Debugging ............................................................................494
Next ....................................................................................................495
24 Building User Authentication and Personalization 497
The Problem ........................................................................................498
Solution Components ..........................................................................499
User Identification and Personalization ........................................499
Storing Bookmarks ........................................................................500
Recommending Bookmarks ..........................................................500
Solution Overview ..............................................................................500
Implementing the Database ................................................................502
Implementing the Basic Site ..............................................................504
Implementing User Authentication ....................................................506
Registering ....................................................................................507
Logging In ....................................................................................513
Logging Out ..................................................................................517
Changing Passwords ......................................................................518
Resetting Forgotten Passwords ......................................................521
Implementing Bookmark Storage and Retrieval ................................526
Adding Bookmarks ........................................................................526
Displaying Bookmarks ..................................................................529
Deleting Bookmarks ......................................................................530
Implementing Recommendations ......................................................532
Wrapping Up and Possible Extensions ..............................................537
Next ....................................................................................................537
25 Building a Shopping Cart 539
The Problem ........................................................................................540
Solution Components ..........................................................................540
Building an Online Catalog ..........................................................540
Tracking a User’s Purchases While She Shops ............................541
Payment ........................................................................................541
Administration Interface ................................................................542
xviii
00 7842 FM 3/6/01 3:38 PM Page xviii