Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

2012 International Conference on Computing, Measurement, Control and Sensor Network

A Shopping Store Online Database System

Paula Woodson Zizhong J. Wang


Department of Math/CS Department of Math/CS
Virginia Wesleyan College Virginia Wesleyan College
Norfolk, VA, USA Norfolk, VA, USA
pswoodson@vwc.edu zwang@vwc.edu
Abstract: This paper presents the design of a II. SYSTEM DESIGN/CASE STUDY
database system for a clothing store using PHP
code and MySQL database that performs search The shopping store, J&R Womens
functions for selected products. There will be a Wear, http://zwang.vwc.edu/~pswoodson/, was
concentration on the administrator and employee created with a Jeans, Tops, Dresses, Shoes,
login where they can access specific items in their Accessories, Clearance, FAQ, JR Awards, and
inventory, and check who signed up for different Gift Cards tabs on the customers’ side. On the
opportunity the store offers. The system will also administrator/employees side there is Model
give customers a chance to see the clothes and see Sign Up, Award Card Holder, Employee Rules
the sign up for the different opportunities.
and Regulations, Employee of the Month, Check
Keywords-shopping store; database system; Inventory, Jeans Inventory, Tops Inventory,
PHP/MySQL; online information system
Dresses Inventory, Accessories Inventory, Shoes
Inventory. The tabs on the customer’s side such
as the Jeans, Tops, Dresses, Shoes, Accessories,
I. INTRODUCTION Clearance has the pricing and pictures of some of
PHP (also known as Hypertext Pre- the clothes the store carries. The gift card page is
Processor) is a general-purpose scripting a page where the customers could look up how
language that was originally designed for web much money they had on their card. The website
development to produce dynamic web pages [1]. also has an inventory function. The inventory
PHP/MySQL (Structured Query Language) is function is run with a MYSQL database. The
used for numerous web applications. MySQL is search function allows the user to browse
a database that is used for many different through the items easier. It will display the name
operating systems or platforms like Mac, of the product, how much it cost and how much
Windows, Linux, Python and Perl. PHP and the store has of it in stock. This allows the
MySQL are the reasons for many web employees/administrators see if they need to
applications that we use today [3]. If we didn’t order more or not. Figure 1 is a screen shot of
have these programs we couldn’t view or run the J&R Women’s Wear website published online.
websites that we used on a daily basis. There is 10 different tables in the
The paper presents the design of a real time MYSQL database and consisted of three or five
clothing store. There is a customer side of the fields. Some of the tables are for the customers,
website where they could see the clothes and and of the tables are for the administrator and
sign up for the different options the store has, employee only. The Models and Awards tables
such as model’s sign-up or rewards card sign up are for the customers to sign up for and the
through MySQL. The website will also have an administrator/employee will be able to see who
administrative/employee side of the website. sign up for them. The Jeans, Top, Dresses,
That side will we be able to check who signed up Shoes, Accessories tables are for the
for the model’s sign-up or rewards cards. They administrator/employee. They can add, and
will be able to add and enter items in the search the inventory that the store has. The fields
MYSQL database. They will be able to search for the inventory are the product name, the cost
and delete item in the database. The website was of the products, and the quantity of how many
written in PHP, HTML (Hypertext Preprocessor) are in stock. The product name is a text value.
[2], and MYSQL. The next section will The cost is a decimal so that it could have a set
introduce the system design and case study, and decimal place for amount of money. The
then the conclusion follows. quantity is an int value, which means integer.
The following (Figure 2) is a screen
shot of products that was entered into the Jeans
inventory through the website in the Jeans able.

978-0-7695-4738-1/12 $26.00 © 2012 IEEE 56


DOI 10.1109/CMCSN.2012.15
Figure 1. The store home page

Figure 2. Inventory tables


dress size because that is an int because it’s an
The Awards table was designed for integer. The Awards and Models table is
customer to become subscribers to J&R described in Figure 3.
Women’s Wear store and receive e-mails, To enter the administrative/employee
discounts and coupons. This database is used in area one would have to have a ‘username’ and
combination with PHP for the ‘password’ to access to the
administrator/employees. The Models table was administrative/employee options. The employee
for the customers who wanted to model clothes can enter, add, and modify the inventory, see the
in the stores “in store fashion show”. The rules and regulations of the store, able to see who
customers would be able to submit their signed up for the modeling and awards cards,
information and it would send it the they could also put time off request on there and
administrator/employees side. This table has five that would go to the administrative side. The
fields containing the Last Name, First Name, main functions for the employees include:
Dress Size, Height, and Contact Number. All of adding products, editing a product, search for
them have a have a varchar value except for the particular product, and displaying all of them.

57
They could add a product, editing anything about view current award card members and models
the items such as the name, cost, and quantity to who signed up they can also add and remove
correct the inventory from mistakes. They could them as well.

Figure 3. Structures of the Awards and Model tables

There are 30 PHP files to interact with {


print '<table border = 1>';
the databases. See sample below of PHP code print '<th> Num <th> Name <th>
that displays the result. Cost <th> Count';
while( $row =
mysql_fetch_row($results_id) )
<?php {
…… print '<tr>';
$table_name = 'Jeans'; foreach ($row as $field )
$query = "SELECT * FROM $table_name"; ……
print "The query is: <i> $query
</i><BR>";
mysql_select_db($database); }
print '<BR><font size=4 color=blue>'; }
$results_id = mysql_query($query,
$connect);
if($results_id)
?>

There are six SQL files used in this website. x Awards2.sql- includes the database for
x Tops.sql- defines the database for the top award statements.
clothes. x Models2.sql- gives the database for model
x Shoes.sql- sets up the database for shoes. requirements.
x Dresses.sql- sets up the database for dresses.
x Acces.sql - sets up the database for
accessories.

58
III. CONCLUSION
An online shopping store website is
great for customers and workers for a store. It’s a
great way for the customers to see what the store
has to offer, whether it is clothes they have or if
it is opportunities that the store has. It is also a
great way for the employees/administrators to
have an inventory database because a lot of
businesses need one.

The paper presents the shopping store


that have a website that benefits both customers
and employees/administrators. The customers to
see what the store has to offer, whether it is
clothes they have or if it is opportunities that the
store has. The employees/administrators can see
if customers are interested in there opportunities
and add, search there inventory list. The
Inventory Database would be managed by the
employees/administrators. It is strictly private by
the employees/administrators. MySQL allows
the database to be created and maintained. The
specified tables, such as Awards, Jeans, and
Models will be constantly updated and
maintained.

REFERENCES
[1] D. A. Lash, The Web wizard's guide to PHP,
Prentice Hall, 2003
[2] E. Castro, HTML for the World Wide We,
Fourth Ed., Peachpit Press, 2000
[3] L. Ullman, PHP and MySQL for Dynamic
Web Sites. Peachpit Press, 2003

59

You might also like