Web server iis - . cbashop.php: Acts as the home page for
. cbashop.php: Acts as the home page for your little store and lists your available products. . getprod.php: Retrieves detailed information about a single product. . modcart.php: Adds, deletes, or changes quantities of a product to your shopping cart. Also empties the shopping cart completely. . cart.php: Displays the contents of your shopping cart. . checkout.php: The first step in the checkout process; this is where the customer enters billing and shipping information. . checkout2.php: The second step in the checkout process; this is where customers verify the accuracy of their orders and make any last-minute changes. . checkout3.php: The final step of the checkout process, where the customer actually sends the order to you, and receives an order number and confirmation. The information is put into the database and deleted from the temporary table, a customer number is assigned (if it s a new customer), and an order number is assigned, as well. E-mail confirmations are sent to the customer and to you. Try It Out Defining the Database and Tables In this exercise you ll create a run-once script that creates the database and tables for this chapter s project. 1. Open your text editor and type the following code: ; } else { echo Sorry, try creating the database again. ; } mysql_select_db( ecommerce ); //Define the product table $query = CREATE TABLE products ( products_prodnum CHAR(5) NOT NULL, products_name VARCHAR(20) NOT NULL, products_proddesc TEXT NOT NULL, products_price DEC (6,2) NOT NULL, products_dateadded DATE NOT NULL, PRIMARY KEY(products_prodnum)) ; $product = mysql_query($query) or die(mysql_error()); //Define the customer table $query2 = CREATE TABLE customers ( 520 Chapter 15
If you are in need for chaep and reliable webhost to host your website, our recommendation is http web server services.