Exercises, Questions, and Projects

  1. Improve the look of the scripts. You might want to consult sources on stylesheets. However, keep in mind that your customers want to see the products and make their orders quickly.

  2. Improve the display by changing either or both of the displaycart function and the money function. You might want to make the money function always return strings of a fixed size.

  3. Change the code to support currencies other than dollars.

  4. Add images to the final Web page presented to the customer: thumbnails of each product ordered.

  5. Add fields to each of the tables and do validation using regular expressions. For example, check for credit card numbers of the format four groups of digits.

  6. Design, program, and debug a set of scripts for the processes of shipping the orders and billing the customers. This would start with reading the orders and ordered items table.

  7. Replace the use of cookies and sessions by the use of another table in the database. You might want to wait until completing the next chapter, which includes use of temporary tables.

Creating Database Web Applications with PHP and ASP
Creating Database Web Applications with PHP and ASP (Charles River Media Internet & Web Design)
ISBN: 1584502649
EAN: 2147483647
Year: 2005
Pages: 125
Authors: Jeanine Meyer

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net