Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

SALFORD UNIVERSITY

A Web Site for a Lottery


May 17, 2011

Syndicate
Hosam Ismail
Table of Contents
1. Design..................................................................................................................2
2. Database..............................................................................................................3
2.1. Buy_lottry.......................................................................................................3
2.2. Members........................................................................................................4
2.3. Prize...............................................................................................................4
2.4. Result master.................................................................................................4
2.5. Result detail...................................................................................................4
3. Functionality........................................................................................................5
3.1. Check results.................................................................................................5
3.2. Contact..........................................................................................................5
3.3. Default...........................................................................................................5
3.4. Forgot............................................................................................................5
3.5. Get_no...........................................................................................................5
3.6. Hot_numbers..................................................................................................5
3.7. Login..............................................................................................................5
3.8. Masterpage....................................................................................................5
3.9. Register.........................................................................................................5
Register
1. Design

The design of the web is created with the help of div and css. Jquery is also used for
some cutting edges. Master page contains all the links, header, and logo and footer
information while other files are used to support additional functionality.
2. Database

There are total 5 tables in our website which are discussed as below. The name of
database is lottery and has no password, this file is saved in a directory named
database in the source code folder.
1.

2.

2.1.Buy_lottry

This table store the information related to all ticket sold for lottery participation.
This table also stores the information that which user buys the ticket and which is
his/her no.

This table is related to members table. Member id of each ticket will be saved in this
table. Later on lucky no will be matched with this table data against wins.
2.2.Members
This table stores the information of each member who participates in the lottery.
Data will be saved in this table through registration form. Each user has a unique
member id which refers to buy lottery table.

2.3.Prize
This table stores the information regarding different prizes. Like if 3 no matches
with lucky no then 10$ will be awarded and if 4 no match with lucky no then 100$
will be the reward and so on.

2.4.Result master
This table stores the lucky no drawn on either Wednesday or Saturday. This table
has unique draw id which tell us about lucky draw no. this table is referenced with
result detail.

2.5.Result detail
This table stores the information about wining members, no of matched records.
Draw no, reward amount etc.
1. Functionality
There are following files in this website to provide remaining functionality.

1.

1.1.Check results
This table is used to check the results of bi-drawn lottery in one week (Wednesday
and Saturday).this page match the tickets of users with lucky no’s and show the
results. This page also shows the results of previous drawn.

This page checks the lucky no from the result_master table and matches them on
by one with buy_lottery table and then shows the results. So we can say that this
page will be the lottery checker for different types of results, like 3 no matching, 4
number matching, 5 number matching, 6 number and bonus ball matching.

1.2.Contact
This page contains some information about the author of the website.

1.3.Default
This is the home page which contains some information regarding national lottery,
how to play, previous results, prize amounts etc.

1.4.Forgot
This page provides to get the forgotten password by email by putting some account
information.

1.5.Get_no
This pages required authentication and only registered members can open this
page. This page is used to buy the no’s for lucky drawn for specific time. A specific
amount will be charged per ticket for the lottery. The user will also be able view old
tickets, to edit the no or add new no. no mean lottery ticket here. The page also
generates different no’s, sort them, give the color to specific range etc.

1.6.Hot_numbers
Hot numbers provide the guess for more lucky no’s in previous drawn. This page
also show that how to maximize the chance of winning a lottery.

1.7.Login
Login page is used to authenticate register users from MS access database.
1.8.Masterpage
Master page is included in all the pages it contains footer, links, header and logo.

1.9.Register
This page is used to provide the registration to different user. Given information will
be saved in MS Access database.

You might also like