public/.htaccess reset RewriteBase if necessary public/index.php replace '/usr/local/share/ZendLibrary' if necessary,We will assume the existence of the guest user with empty password. We also assume the MySQL root user has no password if so, make the appropriate modifications. We will also assume that the projects are accessible as the "/default" URL. This application assumes you're using the dedicated MySQL zendstore database. To set up the database and the initial tables, run:
mysql -u root database.sql mysql -u guest zendstore tables.sqlAfterwards, you should be able to access the project via the URL: You can see a working version from this link on the Computer Science server:
products: description TEXT price DECIMAL(9,2) |
admins: username VARCHAR(50) password VARCHAR(50) UNIQUE (username) |
shoppers: username VARCHAR(50) password VARCHAR(50) email VARCHAR(50) UNIQUE (username) |
orders: shopper_id INT created DATETIME |
items: order_id INT product_id INT qty INT price DECIMAL(9,2) |
table-row-name_idwhere table-row-name is the table name (always plural) made singular. In particular, an order is reflected as an entry in the orders table made by a shopper (shopper_id) at a certain time (created). The order consists of one or more items represented in the items table where each item: