13.09.2016 Views

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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Solution Overview<br />

817<br />

Although it does not all fit in a screenshot, the script shows most, but not all, of the<br />

information that Amazon sends with a heavy request on this page.We chose to ignore<br />

parts aimed at products other than books <strong>and</strong> the list of categories the book fits in.<br />

If users click through the cover image, they will be able to see a larger version of the<br />

image.<br />

You might have noticed the search box at the top of the screen in these figures.This<br />

feature runs a keyword search through the site <strong>and</strong> searches Amazon’s catalog via its <strong>Web</strong><br />

Services interface. An example of the output of a search is shown in Figure 33.3.<br />

Figure 33.3<br />

This screen shows the results of searching for batman.<br />

Although this project lists only a few categories, customers can get to any book by using<br />

the search facility <strong>and</strong> navigating to particular books.<br />

Each individual book has an Add to Cart link with it. Clicking on this or the Details<br />

link in the cart summary takes the customer to a display of the cart contents.This page is<br />

shown in Figure 33.4.

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

Saved successfully!

Ooh no, something went wrong!