13.09.2016 Views

PHP and MySQL Web Development 4th Ed-tqw-_darksiderg

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Contents<br />

xxix<br />

Implementing the Basic Site 574<br />

Implementing User Authentication 577<br />

Registering Users 577<br />

Logging In 584<br />

Logging Out 587<br />

Changing Passwords 588<br />

Resetting Forgotten Passwords 591<br />

Implementing Bookmark Storage <strong>and</strong> Retrieval 596<br />

Adding Bookmarks 596<br />

Displaying Bookmarks 599<br />

Deleting Bookmarks 600<br />

Implementing Recommendations 602<br />

Considering Possible Extensions 606<br />

Next 606<br />

28 Building a Shopping Cart 607<br />

Solution Components 607<br />

Building an Online Catalog 608<br />

Tracking Users’ Purchases While They<br />

Shop 608<br />

Implementing a Payment System 608<br />

Building an Administration Interface 609<br />

Solution Overview 609<br />

Implementing the Database 612<br />

Implementing the Online Catalog 615<br />

Listing Categories 617<br />

Listing Books in a Category 620<br />

Showing Book Details 622<br />

Implementing the Shopping Cart 623<br />

Using the show_cart.php Script 623<br />

Viewing the Cart 627<br />

Adding Items to the Cart 630<br />

Saving the Updated Cart 631<br />

Printing a Header Bar Summary 632<br />

Checking Out 633

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!