Sie sind auf Seite 1von 73

BLOOD BANK MANAGEMENT SYSTEM

PROJECT REPORT

Submitted to Bharathiar University in partial fulfillment of the


requirement for the award of the Degree of

BACHELOR OF COMPUTER APPLICATION

Submitted by

ABHISHEK P NAIR

(Reg. No.: 17UGCA005)

Under the guidance of

Ms. A. KALAIVANI, MCA., M. Phil.,(Ph.D.,)

Assistant Professor, Department of Computer Applications

NEHRU ARTS AND SCIENCE COLLEGE


(An Autonomous Institution affiliated to Bharathiar University)
(Reaccredited with “A” Grade by NAAC, ISO 9001:2015 & 14001:2004 Certified

Recognized by UGC with 2(f) &12(B), Under Star College Scheme by DBT, Govt. of India)

Nehru Gardens, Thirumalayampalayam, Coimbatore - 641 105, Tamil Nadu.


CERTIFICATE
CERTIFICATE

This is to certify that the project report entitled “BLOOD BANK MANAGEMENT
SYSTEM” is a bonafide work done by Mr. ABHISHEK P NAIR ( Reg. No.: 17UGCA005)
submitted in Partial fulfillment of the requirement of the award for the Degree of
BACHELOR OF COMPUTER APPLICATIONS of BHARATHIAR UNIVERSITY,
COIMBATORE during the year 2019-2020.

Date:

Signature of the internal guide

HoD

Certify that we examined the Candidate in the Project work/ Viva-voice examination held
on___________________

Internal Examiner External Examiner

II
DECLARATION
II
I
DECLARATION

I hereby declare that this project work entitled “BLOOD BANK MANAGEMENT
SYSTEM " submitted to BHARATHIAR UNIVERSITY, COIMBATORE in the partial
fulfillment of the requirement for the award of the degree BACHELOR OF COMPUTER
APPLICATIONS is a record of the original work done by Mr. ABHISHEK P NAIR
(17UGCA005) under the supervision and guidance of Ms. A KALAIVANI, MCA., M.
Phil.,(Ph.D.), Assistant Professor, Department of Computer Applications, Nehru Arts and
Science College during the Academic Year 2019-2020.

Signature of the candidate

ABHISHEK P NAIR
17UGCA005
Place:
Date:

4
ACKNOWLEDGEMENT
5
ACKNOWLEDGEMENT

I solemnly take this opportunity to all helping hands that made me accomplish this
project. First and foremost, I thank the Almighty who is the source of knowledge and one
who guided me for completing the project successfully.

I sincerely thank our respected Principal Dr. B ANIRUDHAN M.A, B.Ed., m.Phil.,
Ph.D. Nehru Arts and Science College for permitting me to undertake this project as a part
of the curriculum and for giving me the best facilities and infrastructure for the completion
of the course and project.

My immense gratitude for my Head of the Department Dr. V CHITHRAA, MCA., M.


Phil., Ph.D., for her consultant help and creative ideas over the period of the project work.

I owe a great deal to my faculty guide Ms. A KALAIVANI, MCA., M. Phil., Ph.D.,
Assistant Professor, Department of Computer Applications for her guidance over the
period of the project work. I express my sincere words of gratitude to other faculty
members and staff members of the Department of Computer Applications.

I extend my sincere thanks to my parents and I would like to thank all my friends for their
moral support rendered to me complete this project in grand success.

6
CONTENTS
S.NO CHAPTER PAGE NO.

ACKNOWLEDGEMEN
T
CONTENTS

SYNOPSIS

INTRODUCTION 1-9
1.

1.1 ORGANIZATION
PROFILE

1.2 SYSTEM
SPECIFICATION

1.2.1 HARDWARE
CONFIGURATION
1.2.2 SOFTWARE
SPECIFICATION

2. SYSTEM STUDY 10-12

2.1 EXISTING SYSTEM

2.1.1 DRAWBACKS

2.2 PROPOSED SYSTEM

2.2.1 FEATURES

3. SYSTEM DESIGN AND 13-19


DEVELOPMENT

3.1 FILE DESIGN

3.2 INPUT DESIGN

7
3.3 OUTPUT DESIGN

3.4 DATABASE DESIGN

3.5 SYSTEM
DEVELOPMENT

3.5.1 DESCRIPTION OF
MODULES
(Detailed explanation about
the project work)

4. TESTING AND 20-26


IMPLEMENTATION

5. CONCLUSION 27-28

BIBLIOGRAPHY 29-30

APPENDICES
A. DATA FLOW 31-37
DIAGRAM

B. TABLE STRUCTURE 38-41

C. SAMPLE CODING 42-51

D. SAMPLE INPUT 52-61

E. SAMPLE OUTPUT 52-61

8
INTRODUCTION

9
INTRODUCTION
The purpose of Blood bank data abstract php project study was to develop a blood
management information system to assist in the management of blood donor records and
ease/or control the distribution of blood in various parts of the country basing on the hospital
demands. 

Without quick and timely access to donor records, creating market strategies for blood
donation, lobbying and sensitization of blood donors becomes very difficult. The blood
management information system offers functionality to quick access to donor records
collected from various parts of the country.

It enables monitoring of the results and performance of the blood donation activity such that
relevant and measurable objectives of the organization can be checked. 

It provides to management timely, confidential and secure medical reports that facilitates
planning and decision making and hence improved medical service delivery. The reports
generated by the system give answers to most of the challenges management faces as far as
blood donor records are concerned. 

The Ethiopian Red Cross Society publication, Development in the 1990 states that
information from blood donors should be completely confidential and if this is not assured,
names of the blood donors should not be recorded at all and/or an alternative record
identification should be used. 

1
0
1.1 ORGANIZATION PROFILE

FORTEXO Solutions – FORTEXO provides enterprise level web design, web


development and maintenance services in and outside India with the development center in
Software Technology Park, Coimbatore and global delivery center all over India. Our expert
web designers and developers accomplished various website projects and portals starting
from simple cms to complex customized web portals for many business domains.

Every Individual website that we design is custom built according to your specific needs of
our clients. Our website designers are good at delivering value for digital branding of our
clients profile online. We always make sure our clients get an impressive and effective online
presence as per global standards. Our website design and maintenance service will ensure
client’s stability and maintain your critical Internet services. Fortexo is a brand as website
Development Company in coimbatore as well as south india and UAE . Fortexo is good at
developing and designing affordable and professional website designs for companies all over
India

As a website designing company we help small, medium and large businesses to develop
successful websites that will separate our clients from the rest and eventually help them get
customers from all over the world through online presence.

In the modern fast growing digital world, A website can represent a company globally.
So it has to be designed with international standards, modern facility and should be better
from competitor’s website. This is the service that we offer for the global companies. Website
is a powerful digital tool that can achieve your marketability on web. We can promote your
website as well as the business with impressive logo, web site design and more informative
contents.

Blogs Website Design / Profile Building /Article Based Website / News Portal: Blogs can
generate a huge traffic to any site while simultaneously increasing the exposure to potential
clients and customers all across web. Fortexo can help you in building high quality
interactive blogger website to have global attention.

Portfolio websites: We help individual, celebrities, artists & photographers promote, exhibit,
and sell their artwork or master piece online in an interactive way. Website not only give
them a brand but also helps in showcasing the talent on global front.

Business Websites (Flash / Non Flash), UI Design : Fortexo always deliver high value for
it’s client by building high quality, attractive, feature based and attractive websites. We feel a
website is the one of the most powerful media in today’s world for any business to grow
successfully . We design client’s Website to empower the Business by delivering. We always
measure the growth of business for our clients by developing and improving their online
presence. We create a unique look and feel for ordered website and develop it into a symbol
of your business quality on international standard.

1
1
E- commerce website design: Ecommerce or digital store building or online sales marketing
portal are now in great demand. Every business is looking for virtual store to have online
business. We develop the world class eCommerce application from scratch and also from
open source tool like magento , opencart, oscommerce etc. Our developed eCommerce
websites has seen a tremendous growth in the past few years due to a variety of factors like
attractive theme and innovative extensions and plugins. We at Fortexo global design website
with unique designs and user friendly graphical interfaces making the user experience as
comfortable as it can be.

Logo Designing: Logo is the first brand for the company and speaks a lot about company
vision, mission and business model too. Its sound the presence and also helps in making
digital brands. Hence Designing a good logo is not a simple task and requires a lot of experts
involvement. It requires clear idea about the concept (business domain) of logos and values
of the brand as well as understanding of the target consumer. Basic steps we following in
logo design process is formulating concept, doing initial sketch, development of the concept,
finalizing the logo concept, deciding the theme colors and format.

Our Team

Empowering Growth

Our people are our greatest asset and biggest differentiator. They are passionate about results,
and also believe in having a lot of fun along the way.

However, that does not take away from the focus on work. Our people are passionate about
delivering results to clients. All Fortexo are direct and straightforward—even if that means
telling the uncomfortable truth. We are ambitious and impatient for success, and yet down-to-
earth and approachable.

In short, Fortexo are not only the kind of people you would love to work with, but they are
also the people you would want to socialise with outside work. We encourage you to take
every opportunity to interact with our people and witness the vibrancy of the office in person

Quality Pledge

We are committed to being very aggressive in our attitude towards quality and customer
service, primarily since we want to be ranked as the "best" in our business. Quality is not just
another goal, it is our basic strategy for survival and future growth.

1
2
1.2 SYSTEM SPECIFICATION

1.2.1 Hardware Configuration

Following are the hardware minimum required for the proposed system

Processor : Quad Core

Hard Disk : 120 GB

RAM : 4 GB

Monitor : Lenovo 15 inches

Mouse : Genius Scroll Mouse

Keyboard : 107 keys

1.2.2 Software Specification

Following are the software minimum required for the proposed system

Front End : HTML,PHP

Software Tools : XAMP

Back End : MySQL server

Operating System : Windows 7/10 64 bit

1
3
PHP

PHP Stands for "Hypertext Preprocessor." PHP is an HTML-embedded Web scripting


language. This means PHP code can be inserted into the HTML of a Web page. When a PHP
page is accessed, the PHP code is read or "parsed" by the server the page resides on. The
output from the PHP functions on the page are typically returned as HTML code, which can
be read by the browser. Because the PHP code is transformed into HTML before the page is
loaded, users cannot view the PHP code on a page. This make PHP pages secure enough to
access databases and other secure information.

A lot of the syntax of PHP is borrowed from other languages such as C, Java and Perl.
However, PHP has a number of unique features and specific functions as well. The goal of
the language is to allow Web developers to write dynamically generated pages quickly and
easily. PHP is also great for creating database-driven Web sites. If you would like to learn
more about PHP, the official site is PHP.net.

HTML

HTML Stands for "Hypertext Markup Language." HTML is the language used to
create webpages. "Hypertext" refers to the hyperlinks that an HTML page may contain.
"Markup language" refers to the way tags are used to define the page layout and elements
within the page. The web has gone through many changes over the past few decades, but
HTML has always been the fundamental language used to develop webpages. Interestingly,
while websites have become more advanced and interactive, HTML has actually gotten
simpler. If you compare the source of an HTML5 page with a similar page written in HTML
4.01 or XHTML 1.0, the HTML5 page would probably contain less code. This is because
modern HTML relies on cascading style sheets or JavaScript to format nearly all the elements
within a page.

JAVA SCRIPT

JavaScript is a programming language commonly used in web development. It was originally


developed by Netscape as a means to add dynamic and interactive elements to websites.
While JavaScript is influenced by Java, the syntax is more similar to C and is based on
ECMAScript, a scripting language developed by Sun Microsystems.

JavaScript is a client-side scripting language, which means the source code is processed by


the client's web browser rather than on the web server. This means JavaScript functionscan
run after a webpage has loaded without communicating with the server. For example, a
JavaScript function may check a web form before it is submitted to make sure all the
required fields have been filled out. The JavaScript code can produce an error message before
any information is actually transmitted to the server.

Like server-side scripting languages, such as PHP and ASP, JavaScript code can be inserted
anywhere within the HTML of a webpage. However, only the output of server-side code is
displayed in the HTML, while JavaScript code remains fully visible in the source of the
1
4
webpage. It can also be referenced in a separate .JS file, which may also be viewed in a
browser.

JQuery

JQuery is a JavaScript library that allows web developers to add extra functionality to their
websites. It is open source and provided for free under the MIT license. In recent years,
jQuery has become the most popular JavaScript library used in web development. To
implement jQuery, a web developer simply needs to reference the jQuery JavaScript file
within the HTML of a webpage. Some websites host their own local copy of jQuery, while
others simply reference the library hosted by Google or the jQuery server. 

Features of PHP:

 It is very simple and easy to use, compare to other scripting language it is very
simple and easy, this is widely used all over the world.
 It is an interpreted language, i.e. there is no need for compilation.
 It is faster than other scripting language e.g. asp and jsp.
 Open source means you no need to pay for use php, you can free download and use.
 PHP code will be run on every platform, Linux, Unix, Mac OS X, Windows.
 PHP is case sensitive scripting language at time of variable declaration. In PHP, all
keywords (e.g. if, else, while, echo, etc.), classes, functions, and user-defined
functions are NOT case-sensitive.
 PHP have some predefined error reporting constants to generate a warning or error
notice.
 PHP provides access logging by creating the summary of recent accesses for the
user.
 PHP supports variable usage without declaring its data type. It will be taken at the
time of the execution based on the type of data it has on its value.

MYSQL

A database is a collection of information that is organized so that it can be easily accessed,


managed and updated. Data is organized into rows, columns and tables, and it is indexed to
make it easier to find relevant information. Data gets updated, expanded and deleted as new
information is added. Databases process workloads to create and update themselves, querying
the data they contain and running applications against it.

Relational database

A relational database, invented by E.F. Codd at IBM in 1970, is a tabular database in which
data is defined so that it can be reorganized and accessed in a number of different ways.
Relational databases are made up of a set of tables with data that fits into a predefined
category. Each table has at least one data category in a column, and each row has a certain
data instance for the categories which are defined in the columns. The Structured Query
1
5
Language (SQL) is the standard user and application program interface for a relational
database. Relational databases are easy to extend, and a new data category can be added after
the original database creation without requiring that you modify all the existing applications.

RDBMS technologies:

 Database: A database is a collection of tables, with related data.

 Table: A table is a matrix with data. A table in a database looks like a simple
spreadsheet.

 Column: One column (data element) contains data of one and the same kind, for
example the column postcode.

 Row: A row is a group of related data, for example the data of one subscription.

 Redundancy: Storing data twice, redundantly to make the system faster.

 Primary Key: A primary key is unique. A key value cannot occur twice in one table.
With a key, you can find at most one row.

 Foreign Key: A foreign key is the linking pin between two tables.

 Compound Key: A compound key is a key that consists of multiple columns,


because one column is not sufficiently unique.

 Index: An index in a database resembles an index at the back of a book.

MYSQL Database:

 MySQL is an Oracle-backed open source relational database management system


(RDBMS) based on Structured Query Language (SQL). MySQL runs on virtually all
platforms, including Linux, UNIX and Windows. Although it can be used in a wide
range of applications, MySQL is most often associated with web applications and
online publishing.

 MySQL is an important component of an open source enterprise stack called LAMP.


LAMP is a web development platform that uses Linux as the operating
system, Apache as the web server, MySQL as the relational database management
system and  PHP as the object-oriented scripting language.

 MySQL is based on a client-server model. The core of MySQL is MySQL server,


which handles all of the database instructions (or commands).

1
6
1
7
SYSTEM STUDY
2.1 EXISTING SYSTEM:

 The problem of protecting various types of multimedia content has attracted


significant attention from academia and industry. in which some distinctive
information is embedded in the content itself and a method is used to search for this
information in order to verify the authenticity of the content.
 Many previous works proposed different methods for creating and matching
signatures. These methods can be classified into four categories: spatial, temporal,
color, and transform-domain. Spatial signatures (particularly the block-based) are the
most widely used.

2.1.1 DISADVANTAGES OF EXISTING SYSTEM:

 Huge cost in terms of data usability. For example, the existing techniques on
keyword-based information retrieval, which are widely used on the plaintext data,
cannot be directly applied on the encrypted data. Downloading all the data from the
cloud and decrypt locally is obviously impractical.
 Existing System methods not practical due to their high computational overhead for
both the cloud sever and user.

2.2 PROPOSED SYSTEM:

 We present a novel system for multimedia content protection on cloud infrastructures.


The system can be used to protect various multimedia content types.
 In our proposed system we present complete multi-cloud system for multimedia
content protection. The system supports different types of multimedia content and can
effectively utilize varying computing resources.
 We design a searchable encryption scheme that supports both the accurate multi-
keyword ranked search and flexible dynamic operation on document collection.

2.2.1 FEATURES:
It is most popular and frequently used world wide scripting language, the main reason of popularity is;
It is open source and very simple.

 Simple
 Faster
 Interpreted
 Open Source
 Case Sensitive
 Simplicity

1
8
 Efficiency
 Platform Independent
 Security
 Flexibility
 Familiarity
 Error Reporting
 Loosely Typed Language
 Real-Time Access Monitoring

1
9
2
0
SYSTEM DESIGN AND DEVELOPMENT

1. SYSTEM DESIGN AND DEVELOPMENT

3.1 FILE DESIGN

File design is the process of producing a detailed data model of a database. This logical data
model contains all the needed logical and physical design choices and physical storage
parameters needed to generate a design in a Data Definition Language, which can then be
used to create a database. A fully attributed data model contains detailed attributes for each
entity.

The term database design can be used to describe many different parts of the design of an
overall database system. Principally, and most correctly, it can be thought of as the logical
design of the base data structures used to store the data. In the relational model these are the
tables and views. In an Object database the entities and relationships map directly to object
classes and named relationships. However, the term database design could also be used to
apply to the overall process of designing, not just the base data structures, but also the forms
and queries used as part of the overall database application within the Database Management
System or DBMS.

All information systems create, read, update, and delete data. This data is stored in files and
databases. A file is a collection of similar records. Examples include a Customer File ,Order
File and Product File.

3.2 INPUT DESIGN

Input design is a part of overall system design, which requires careful attention. It is
the process of converting user-originated inputs to a computer-based format. The major
objective of the input design is to make data entry easy, logical and error free.

In PHP input to the system is entered through forms. A form is “any surface on which
information is to be entered, the nature of which is determined by what is already on the
surface”. If the data going into the system is incorrect, then processing and output will
magnify these errors. So designer should ensure that form is acceptable and understandable
by the user.

2
1
This application has been developed in a user-friendly manner. The layout of the form
is made in such a way that the user will not find any difficulty in going from one field to
other by just pressing the tab. During the processing the cursor is placed in the position where
the data must be entered.

The user is also provided with an option of selecting an appropriate input from a list
of values. Necessary dropdown list boxes and combo boxes are included for necessary fields
so that the user need not remember all the data and can just select from it.

Validation is made for each and every data entered. Help messages are also provided
whenever the users enter a wrong data into a particular field. This makes the user to
understand what is to be entered, moreover whenever an erroneous data is entered the error
message is displayed and the user can move to the next field only after entering the correct
data.

The clear label for the menus and fields are also provided. Consultations are provided
so that a user can view the details of any process at any time.

3.3 OUTPUT DESIGN

One of the most important features of a system for users in the output it produces.
Output design should improve the system’s relationship with the user and help in decision-
making. Considering the future use of output required, and depending on the nature, it is
displayed on the monitor for immediate need of obtaining the hard copy.

The objective of output design is to define the controls and format of all printed
documents and reports and of screens that will be produced by the system. Computer output
is the most important and direct source of information to the user.

Objectives Of Output Design

1. Design output to serve the intended purpose.

2. Deliver the appropriate quality of output.

3. Choose the right output method.

4. Provide output on time.

Output, generally refers to the results that are generated by the system. The output of
the system is designed so as to include number of reports. Reports reflect the output design.

3.4 DATABASE DESIGN

The activity deals with the design of the database. A key is to determine how
the access paths are to be implemented. A physical path is derived from a logical path. The
general theme behind database is to handle information as a whole. A database is a collection
2
2
of interrelated data stored with minimum redundancy to serve many users quickly and
efficiently.

The general objective is to make information access easy, quick, inexpensive and
flexible for the user. Database design is the most critical part of the design phase. An
elegantly designed, well-defined database is a strong foundation for the whole system. Files
in a relational database are called as tables. Columns of tables represent data and rows
represent the records in conventional technology.

3.5 SYSTEM DEVELOPMENT

Normalization of Database

Database Normalization is a technique of organizing the data in the database.


Normalization is a systematic approach of decomposing tables to eliminate data redundancy
and undesirable characteristics like Insertion, Update and Deletion Anomalies. It is a multi-
step process that puts data into tabular form by removing duplicated data from the relation
tables.

Normalization is used for mainly two purposes,

 Eliminating redundant (useless) data.

 Ensuring data dependencies make sense i.e. data is logically stored.

Normalization rule

Normalization rule are divided into following normal form.

 First Normal Form

 Second Normal Form

 Third Normal Form

First Normal Form (1NF)

 As per First Normal Form, no two Rows of data must contain repeating group of
information i.e. each set of column must have a unique value, such that multiple
columns cannot be used to fetch the same row. Each table should be organized into
rows, and each row should have a primary key that distinguishes it as unique.

2
3
 The Primary key is usually a single column, but sometimes more than one column
can be combined to create a single primary key. For example consider a table which is
not in First normal form.

Second Normal Form (2NF)

As per the Second Normal Form there must not be any partial dependency of any
column on primary key. It means that for a table that has concatenated primary key, each
column in the table that is not part of the primary key must depend upon the entire
concatenated key for its existence. If any column depends only on one part of the
concatenated key, then the table fails Second normal form.

Third Normal Form (3NF)

Third Normal form applies that every non-prime attribute of table must be


dependent on primary key, or we can say that, there should not be the case that a non-
prime attribute is determined by another non-prime attribute. So this transitive functional
dependency should be removed from the table and also the table must be in Second
Normal form. For example, consider a table with following fields.

3.5.1 DESCRIPTION OF MODULES

Data Owner Module

This module helps the owner to register those details and also include login details. This
module helps the owner to upload different types of files into cloud with paid and free . This
ensures the files to be protected from unauthorized user. Data owner has a collection of
documents F ={f1; f2; :::; fn} that he wants to outsource to the cloud server in encrypted
form while still keeping the capability to search on them for effective utilization. In our
scheme, the data owner firstly builds a secure searchable tree index I from document
collection F, and then generates an encrypted document collection C  for F. Afterwards, the
data owner outsources the encrypted collection C and the secure index I to the cloud server,
and securely distributes the key information of trapdoor generation and document decryption
to the authorized data users. Besides, the data owner is responsible for the update operation of
his documents stored in the cloud server. While updating, the data owner generates the update
information locally and sends it to the server.

Data User Module

This module includes the user registration login details. This module is used to help the client
to search the file using the multiple key words concept and also suggest the paid or free
type’s files and get the accurate result list based on the user query. The user is going to select
the required file and register the user details and get login credentials, secret key to their
email id. After the search the data user can send a request to corresponding data owner. Once

2
4
the owner can verify the user request the owner can send a unique file key to data user. The
Data user can check their request file status through this application. The request status is
allowed the user can download the file from the cloud after verify the secret key and file key
provided by the cloud. If the file is paid the user can download the file through the payment
process and key verification section. Once download the paid file from the cloud that file can
access any time from the user inbox option. This option is provide for only paid files.

Cloud Admin and Authentication Module:

This module is used to help the server to identify the cloud user details and uploaded file
details. This module is controlled by the cloud admin. The cloud admin can provide a cloud
access to data owner’s and data user’s. Cloud Admin can only privileges to publish the files
into the site after the approval. And also privileges to search the different types files available
in the cloud through the file count. Monthly wise report generation is helps to display the
payment details of the particular data owner through the data user file request. Also view the
downloads rating through graphical representation.

Search Module

These modules ensure the user to search the files that are searched frequently using keyword
search. This module allows the user to download the file using his secret key and file key to
decrypt the downloaded data. This module allows the Owner to view the uploaded files and
downloaded files. The proposed scheme is designed to provide not only multi-keyword query
and accurate result ranking, but also dynamic update on document collections. The scheme is
designed to prevent the cloud server from learning additional information about the document
collection, the index tree, and the query.

Payment Module:

The payment module maintains the details of paid type of files requested by the data user and
their payment provided details. The data owner can view their paid data user details.

Download Statistics

This module is used to represent the downloads rating by graphical representation.Admin can
easily verify the download ratings in the cloud.

2
5
2
6
TESTING AND IMPLEMENTATION
4. TESTING AND IMPLEMENTATION

The purpose of testing is to discover errors. Testing is the process of trying to


discover every conceivable fault or weakness in a work product. It provides a way to check
the functionality of components, sub assemblies, assemblies and/or a finished product It is the
process of exercising software with the intent of ensuring that the Software system meets its
requirements and user expectations and does not fail in an unacceptable manner. There are
various types of test. Each test type addresses a specific testing requirement.

TYPES OF TESTS

Unit testing

Unit testing involves the design of test cases that validate that the internal program
logic is functioning properly, and that program inputs produce valid outputs. All decision
branches and internal code flow should be validated. It is the testing of individual software
units of the application .it is done after the completion of an individual unit before
integration. This is a structural testing, that relies on knowledge of its construction and is
invasive. Unit tests perform basic tests at component level and test a specific business
process, application, and/or system configuration. Unit tests ensure that each unique path of a
business process performs accurately to the documented specifications and contains clearly
defined inputs and expected results.

Integration testing

Integration tests are designed to test integrated software components to determine if


they actually run as one program. Testing is event driven and is more concerned with the
basic outcome of screens or fields. Integration tests demonstrate that although the
components were individually satisfaction, as shown by successfully unit testing, the
combination of components is correct and consistent. Integration testing is specifically aimed
at exposing the problems that arise from the combination of components.

Functional test

Functional tests provide systematic demonstrations that functions tested are available as
specified by the business and technical requirements, system documentation, and user
manuals.
2
7
Functional testing is centered on the following items:

Valid Input : identified classes of valid input must be accepted.

Invalid Input : identified classes of invalid input must be rejected.

Functions : identified functions must be exercised.

Output : identified classes of application outputs must be exercised.

Systems/Procedures: interfacing systems or procedures must be invoked.

Organization and preparation of functional tests is focused on requirements, key functions,


or special test cases. In addition, systematic coverage pertaining to identify Business process
flows; data fields, predefined processes, and successive processes must be considered for
testing. Before functional testing is complete, additional tests are identified and the effective
value of current tests is determined.

System Test

System testing ensures that the entire integrated software system meets requirements. It
tests a configuration to ensure known and predictable results. An example of system testing is
the configuration oriented system integration test. System testing is based on process
descriptions and flows, emphasizing pre-driven process links and integration points.

White Box Testing

White Box Testing is a testing in which in which the software tester has knowledge of
the inner workings, structure and language of the software, or at least its purpose. It is
purpose. It is used to test areas that cannot be reached from a black box level.

Black Box Testing

Black Box Testing is testing the software without any knowledge of the inner workings,
structure or language of the module being tested. Black box tests, as most other kinds of tests,
must be written from a definitive source document, such as specification or requirements
document, such as specification or requirements document. It is a testing in which the
software under test is treated, as a black box .you cannot “see” into it. The test provides
inputs and responds to outputs without considering how the software works.

Unit Testing:

2
8
Unit testing is usually conducted as part of a combined code and unit test phase of the
software lifecycle, although it is not uncommon for coding and unit testing to be conducted as
two distinct phases.

Test strategy and approach

Field testing will be performed manually and functional tests will be written in detail.

Test objectives

 All field entries must work properly.

 Pages must be activated from the identified link.

 The entry screen, messages and responses must not be delayed.

Features to be tested

 Verify that the entries are of the correct format

 No duplicate entries should be allowed

 All links should take the user to the correct page.

Integration Testing

Software integration testing is the incremental integration testing of two or more


integrated software components on a single platform to produce failures caused by interface
defects.

The task of the integration test is to check that components or software applications,
e.g. components in a software system or – one step up – software applications at the company
level – interact without error.

Test Results: All the test cases mentioned above passed successfully. No defects
encountered.

Acceptance Testing

User Acceptance Testing is a critical phase of any project and requires significant
participation by the end user. It also ensures that the system meets the functional
requirements.

Test Results:

2
9
All the test cases mentioned above passed successfully. No defects encountered.

SYSTEM IMPLEMENTATION

Implementation Planning:

This section describes about the Implementation of the This application and the details
of how to access this control from any application.

Implementation is the process of assuring that the information system is operational and
then allowing users take over its operation for use and evaluation. Implementation includes
the following activities.

 Obtaining and installing the system hardware.

 Installing the system and making it run on its intended hardware.

 Providing user access to the system.

 Creating and updating the database.

 Documenting the system for its users and for those who will be responsible for
maintaining it in the future.

 Making arrangements to support the users as the system is used.

 Transferring ongoing responsibility for the system from its developers to the
operations or maintenance part.

 Evaluating the operation and use of the system.

Implementation Phase in this project:

This new system has been implemented. The database was put into the MySQL server..
The database is accessible through Driver Manager. Documentation is provided well in such
a way that it is useful for users and maintainers.

Maintenance:

Maintenance is any work done to change the system after it is in operational. The term
maintenance is used to describe activities that occur following the delivery of the product to
the customer. The maintenance phase of the software life cycle is the time period in which a
software product performs useful work.

3
0
Maintenance activities involve making enhancements to products, adapting products to
new environments, correcting problems.

In this be retrieve the data from the database design by searching the database. So, for
maintaining data our project has a backup facility so that there is an additional copy of data,
which needs to be maintained. More over this project would update the annual data on to a
CD, which could be used for later reference

Methods of implementation:

The four basic methods of implementation are:

1. Parallel system method.

2. Direct cut over method.

3. Pilot system method.

4. Phase in method.

3
1
3
2
CONCLUTION
The purpose of Blood bank data abstract php project study was to develop a blood
management information system to assist in the management of blood donor records and
ease/or control the distribution of blood in various parts of the country basing on the hospital
demands. 

Without quick and timely access to donor records, creating market strategies for blood
donation, lobbying and sensitization of blood donors becomes very difficult. The blood
management information system offers functionality to quick access to donor records
collected from various parts of the country.

It enables monitoring of the results and performance of the blood donation activity such that
relevant and measurable objectives of the organization can be checked. 

It provides to management timely, confidential and secure medical reports that facilitates
planning and decision making and hence improved medical service delivery. The reports
generated by the system give answers to most of the challenges management faces as far as
blood donor records are concerned. 

The Ethiopian Red Cross Society publication, Development in the 1990 states that
information from blood donors should be completely confidential and if this is not assured,
names of the blood donors should not be recorded at all and/or an alternative record
identification should be used. 

3
3
3
4
BIBILIOGRAPHY
BIBLIOGRAPHY
BIBLIOGRAPHY
BookName: PHP6 and MySQL AuthorName: SteveSuehring,TimConverse,andJoyce
Park

Websites
•http://www.w3schools.com
•http://www.quibids.com
•http://www.ubid.com
•http://www.i-bidder.com
•http://www.redbid.com

3
5
DATA FLOW DIAGRAM

3
6
ER DIAGRAM

3
7
Field Name Field Type Field Length
Varchar2 20
Name
Addr Varchar2 30
City Varchar2 20
Sex Varchar2 6
Wei Number 5,3
Dob Date
Bgrp Varchar2 10
Telo Number 14
Telr Number 14
Mobi Number 14
Email Varchar2 30
Lname Varchar2 20
Pass Varchar2 15

3
8
SCREENSHOT

3
9
4
0
4
1
4
2
4
3
SAMPLE CODE

4
4
ul class="nav">
<li class="active"><a href="index.php">Home</a></li>
<li><a href="registration.php">Donor Registration</a></li>
<li><a href="requests.php">send Request</a></li>
<li><a href="viewrequest.php">View Request</a></li>
<li><a href="camps.php">Camps</a></li>
<li><a href="login.php">log In</a></li>
<li><a href="search.php">Search</a></li>
<li><a href="contact.php">Contact Us</a></li>
<li><a href="aboutus.php">About</a></li>
</ul>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Blood bank Management System</title>
<link href="css/lightbox.css" rel="stylesheet" />
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />

<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet'


type='text/css'>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!--slider-->
<link href="css/flexslider.css" rel="stylesheet" type="text/css" media="all" />
<script src="js/jquery-1.11.0.min.js"></script>
<script src="js/lightbox.min.js"></script>
<script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="js/jquery.flexslider.js" type="text/javascript"></script>

4
5
<script type="text/javascript">
$(function () {
SyntaxHighlighter.all();
});
$(window).load(function () {
$('.flexslider').flexslider({
animation: "slide",
animationLoop: false,
itemWidth: 210,
itemMargin: 5,
minItems: 2,
maxItems: 4,
start: function (slider) {
$('body').removeClass('loading');
}
});
});
</script>
</head>

<body>
<div class="h_bg">
<div class="wrap">
<div class="header">
<div class="logo">
<h1><a href="index.php"><img src="Images/logo.png" alt=""></a></h1>
</div>
</div>
</div>

4
6
</div>
<div class="nav_bg">
<div class="wrap">
<?php require('header.php');?>
</div>

<div>

<div class="h_btm_bg">
<div class="wrap">
<div class="h_btm">
<div class="header-para">
<img src="cpics/welcome.png"/>
<p>Blood is universally recognized as the most precious element that sustains life. It
saves innumerable lives across the world in a variety of conditions. The need for blood
is great - on any given day, approximately 39,000 units of Red Blood Cells are needed.
More than 29 million units of blood components are transfused every year.
Donate Blood
Despite the increase in the number of donors, blood remains in short supply during
emergencies, mainly attributed to the lack of information and accessibility.

We positively believe this tool can overcome most of these challenges by effectively
connecting the blood donors with the blood recipients.</p>
</div>

<div class="clear"></div>
</div>
</div>
</div>
<div class="s_bg">
<div class="wrap">

4
7
<div class="main_cont">
<section class="slider">
<div class="flexslider carousel">
<ul class="slides">
<li>
<img src="Images/slider1.jpg" />
</li>
<li>
<img src="Images/slider2.jpg" />
</li>
<li>
<img src="Images/slider3.jpg"/>
</li>
<li>
<img src="Images/slider4.jpg" />
</li>
<li>
<img src="Images/slider5.jpg" />
</li>
<li>
<img src="Images/slider6.jpg" />
</li>
<li>
<img src="Images/slider7.jpg" />
</li>
<li>
<img src="Images/slider8.jpg" />
</li>
</ul>

4
8
</div>
</section>
<div class="ribben">
<div class="l-triangle-top"></div>
<div class="l-triangle-bottom"></div>
<div class="rectangle"></div>
<div class="r-triangle-top"></div>
<div class="r-triangle-bottom"></div>
<div class="clear"></div>
</div>
<div class="main">
<div class="content">
<h4>Blood bank:</h4>
<p>We welcome you to in our WebSite. If you are a donor , We appreciate you <a
href="index1.php">signing up</a> online as a Donor. If you need blood we are happy
to serve you. This blood donor list is hosted by <a
href="index.php">www.lifesaver.com</a> on behalf of "Life Saver Blood Bank"
as a public service without any profit motive.This is a free service. While the Organisers
have taken all steps to obtain accurate and up-to-date information of potential blood
donors,
the Organisers and ICM Computers do not guarantee accuracy of the information
contained herein or the suitability of the persons listed as any liability for direct or
consequential damage to any person using this blood donor list including
loss of life or damage due to infection of any nature arising out of blood transfusion
from persons whose names have been listed in this website.
We request donors to update contact details regularly.</p>
</div>
<div class="sidebar">
<h2>Latest News</h2>
<div class="blog_posts">

<marquee direction="up" scrolldelay="300"><table >

4
9
<tr><td>
<div class="blog_desc">
<div class="blog_heading">
<span style="font-weight:bold"><b>HDFC Bank sets Guinness record in blood
collection</b>
<p>The blood donation camp organised by HDFC Bank on December 6, 2013 involving
61,902 participants has found a place in Guinness Book of Records as the largest such
drive on a single day</p></span>

</div>
<br />
<span style="font-weight:bold"><b>World Blood Donor Day: Poor health reduces
women blood donors in India</b>
<p>While the overall number of blood donors in India has grown over the years,
women constitute only a tiny 10 percent share owing to health problems like pernicious
anaemia and low haemoglobin levels or being underweight</p></span>
</div>
</td></tr>

</table></marquee>

<div class="clear"></div>
</div>

</div>
<div class="clear"></div>
</div>
</div>
</div>
</div>

5
0
</div>
<div class="clear"></div>
<div class="ftr-bg">
<div class="wrap">
<div class="footer">
<div class="f_nav">
<ul>
<li class="active"><a href="index.php">Home</a></li>
<li><a href="donar.php">Donor</a></li>
<li><a href="login.php">log In</a></li>
<li><a href="aboutus.php">About</a></li>
<li><a href="contact.php">Contact Us</a></li>

</ul>
</div>
<div class="copy">
<p class="title">© All Rights Reserved </p>
</div>
<div class="clear"></div>
</div>
</div>
</div>
</body>
</html>
<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
5
1
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Blood bank Management System</title>
<link href="css/lightbox.css" rel="stylesheet" />
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />

<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet'


type='text/css'>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!--slider-->
<link href="css/flexslider.css" rel="stylesheet" type="text/css" media="all" />
<script src="js/jquery-1.11.0.min.js"></script>
<script src="js/lightbox.min.js"></script>
<script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="js/jquery.flexslider.js" type="text/javascript"></script>

<script type="text/javascript">
$(function () {
SyntaxHighlighter.all();
});
$(window).load(function () {
$('.flexslider').flexslider({
animation: "slide",
animationLoop: false,
itemWidth: 210,
itemMargin: 5,
minItems: 2,
maxItems: 4,
start: function (slider) {
$('body').removeClass('loading');
}
5
2
});
});
</script>
</head>

<body>
<?php include('admin/function.php'); ?>

<div class="h_bg">
<div class="wrap">
<div class="header">
<div class="logo">
<h1><a href="index.php"><img src="Images/logo.png" alt=""></a></h1>
</div>
</div>
</div>
</div>
<div class="nav_bg">
<div class="wrap">
<?php require('header.php');?>
</div>

<div style="height:500px;">
<form method="post" enctype="multipart/form-data">

<table cellpadding="0" cellspacing="0" width="600px" height="300px"


class="tableborder" style="margin:auto; margin-top:100px;" >
<tr><td>&nbsp;</td><td>&nbsp;</td></tr>
5
3
<tr><td colspan="2" align="center"><img src="Images/login2.png" width="300px"
height="70px"></td></tr>

<tr><td colspan="2">&nbsp;</td></tr> <tr><td colspan="2">&nbsp;</td></tr>


<tr><td align="right"><img src="Images/login1.png" width="200px" height="150px"
/></td>
<td style="vertical-align:top"><table cellpadding="0" cellspacing="0"
height="200px">

<tr><td class="lefttd">E-Mail</td><td><input type="email" name="t1"


required="required"/></td></tr>
<tr><td class="lefttd">Password</td><td><input type="password"name="t2"
required="required" pattern="[a-zA-Z0-9]{2,10}" title="please enter only character or
numbers between 2 to 10 for password" /></td></tr>

<tr><td>&nbsp;</td><td><input type="submit" value="Log In" name="sbmt"


style="border:0px; background:linear-gradient(#900,#D50000); width:100px;
height:30px; border-radius:10px 1px 10px 1px; box-shadow:1px 1px 5px black;
color:white; font-weight:bold; font-size:14px; text-shadow:1px 1px 6px black;
"></td></tr>
<tr><td style="font-size:14px">Not A DONOR.?</td><td ><a href="index1.php"
style="color:#C30">Click here</a> to REGISTER.</td></tr>
<tr><td>&nbsp;</td><td>&nbsp;</td></tr>

</table>
</td></tr></table>

</form>
</div>

5
4
<div class="clear"></div>
<div class="ftr-bg">
<div class="wrap">
<div class="footer">
<div class="f_nav">
<ul>
<li class="active"><a href="index.php">Home</a></li>
<li><a href="donar.php">Donor</a></li>
<li><a href="login.php">log In</a></li>
<li><a href="aboutus.php">About</a></li>
<li><a href="contact.php">Contact Us</a></li>

</ul>
</div>
<div class="copy">
<p class="title">© All Rights Reserved </p>
</div>
<div class="clear"></div>
</div>
</div>
</div>

</div>

<?php

5
5
$_SESSION['donorstatus']="";

if(isset($_POST["sbmt"]))
{

$cn=makeconnection();

$s="select *from donarregistration where email='" . $_POST["t1"] . "' and pwd='" .


$_POST["t2"] . "'";

$q=mysqli_query($cn,$s);
$r=mysqli_num_rows($q);
mysqli_close($cn);
if($r>0)
{
$_SESSION["email"]=$_POST["t1"];
$_SESSION['donorstatus']="yes";
//header("location:donor/index.php");
echo "<script>location.replace('donor/index.php');</script>";
}
else
{
echo "<script>alert('Invalid User Name Or Password');</script>";
}

}
?>
</body>
</html>
5
6
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="css/lightbox.css" rel="stylesheet" />
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />

<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet'


type='text/css'>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!--slider-->
<link href="css/flexslider.css" rel="stylesheet" type="text/css" media="all" />
<script src="js/jquery-1.11.0.min.js"></script>
<script src="js/lightbox.min.js"></script>
<script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="js/jquery.flexslider.js" type="text/javascript"></script>

<script type="text/javascript">
$(function () {
SyntaxHighlighter.all();
});
$(window).load(function () {
$('.flexslider').flexslider({
animation: "slide",
animationLoop: false,
itemWidth: 210,
itemMargin: 5,
minItems: 2,

5
7
maxItems: 4,
start: function (slider) {
$('body').removeClass('loading');
}
});
});
</script>
</head>

<body>
<?php include('admin/function.php'); ?>
<div class="h_bg">
<div class="wrap">
<div class="header">
<div class="logo">
<h1><a href="index.php"><img src="Images/logo.png" alt=""></a></h1>
</div>
</div>
</div>
</div>
<div class="nav_bg">
<div class="wrap">
<?php require('header.php');?>
</div>
<div style="height:530px; width:700px; margin:auto; margin-top:10px; margin-
bottom:10px; background-color:#f8f1e4; border:2px solid red; box-shadow:4px 1px
20px black;">
<form method="post" enctype="multipart/form-data">
<table cellpadding="0" cellspacing="0" style="margin:auto; width:100%; " >

5
8
<tr><td colspan="2" align="center"><img src="Images/donor.png" width="300px"
height="80px" /></td></tr>

<tr><td colspan="2">&nbsp;</td></tr>

<tr><td style=" padding-left:20px;" ><img src="Images/sidebanner.jpg"


width="170px" class="shaddoww"/>&nbsp; </td>
<td style="vertical-align:top;padding-top:20px;">
<table cellpadding="0" cellspacing="0" style="width:100%; height:400px;">

<tr><td class="lefttd">Donor Name:</td><td><input type="text" name="t1"


required="required" pattern="[a-zA-Z _]{4,15}" title="please enter only character
between 4 to 15 for donor name" /></td></tr>

<tr><td class="lefttd">Gender</td><td><input name="r1" type="radio"


value="male" checked="checked">Male<input name="r1" type="radio"
value="female" >Female</td></tr>

<tr><td class="lefttd">Age</td><td><input type="number" name="t2"


required="required" pattern="[0-9]{2,2}" title="please enter only numbers between 2
to 2 for age" /></td></tr>
<tr><td class="lefttd">Mobile No</td><td><input type="number" name="t3"
required="required" pattern="[0-9]{10,11}" title="please enter only numbers between
10 to 11 for mobile no." /></td></tr>
<tr><td class="lefttd"> Blood Group </td><td><select name="t4" required><option
value="">Select</option>
<?php
$cn=makeconnection();
$s="select * from bloodgroup";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;
while($data=mysqli_fetch_array($result))

5
9
{
if(isset($_POST["show"])&& $data[0]==$_POST["s2"])
{
echo "<option value=$data[0] selected>$data[1]</option>";
}
else
{
echo "<option value=$data[0]>$data[1]</option>";
}

}
mysqli_close($cn);

?>

</select></td></tr>
<tr><td class="lefttd">E-Mail</td><td><input type="email" name="t5"
required="required" /></td></tr>

<tr><td class="lefttd">Password</td><td><input type="password" name="t6"


required="required" pattern="[a-zA-Z0-9]{2,10}" title="please enter only character or
numbers between 2 to 10 for password" /></td></tr>
<tr><td class="lefttd">Confirm Password</td><td><input type="password"
name="t7" required="required" pattern="[a-zA-Z0-9 ]{2,10}" title="please enter only
character or numbers between 2 to 10 for password" /></td></tr>

6
0
<tr><td class="lefttd">Uplode Pic</td><td><input type="file" name="t8"
/></td></tr>
<tr><td>&nbsp;</td><td><input type="submit" value="Resitred" name="sbmt"
style="border:0px; background:linear-gradient(#900,#D50000); width:100px;
height:30px; border-radius:10px 1px 10px 1px; box-shadow:1px 1px 5px black;
color:white; font-weight:bold; font-size:14px; text-shadow:1px 1px 6px black;
"></td></tr></table>
</td></tr>
</table>
</form>
</div>

<div class="clear"></div>
<div class="ftr-bg">
<div class="wrap">
<div class="footer">
<div class="f_nav">
<ul>
<li class="active"><a href="index.php">Home</a></li>
<li><a href="donar.php">Donor</a></li>
<li><a href="login.php">log In</a></li>
<li><a href="aboutus.php">About</a></li>
<li><a href="contact.php">Contact Us</a></li>

</ul>
</div>
<div class="copy">
<p class="title">© All Rights Reserved | Design by Mr. Bhatia |</p>
</div>
<div class="clear"></div>
</div>

6
1
</div>
</div>

<?php
if(isset($_POST["sbmt"]))
{
$target_dir = "doner_pic/";
$target_file = $target_dir . basename($_FILES["t8"]["name"]);
$uploadOk = 1;
$imageFileType = pathinfo($target_file,PATHINFO_EXTENSION);
// Check if image file is a actual image or fake image

$check = getimagesize($_FILES["t8"]["tmp_name"]);
if($check !== false) {
// echo "File is an image - " . $check["mime"] . ".";
$uploadOk = 1;
} else {
echo "File is not an image.";
$uploadOk = 0;
}

// Check if file already exists


if (file_exists($target_file)) {
echo "Sorry, file already exists.";
$uploadOk = 0;
}
//aloow certain file formats
if($imageFileType != "jpg" && $imageFileType !="png" && $imageFileType !
="jpeg" && $imageFileType !="gif"){
echo "sorry, only jpg, jpeg, Png & gif files are allowed.";
6
2
$uploadok=0;
}else{
if(move_uploaded_file($_FILES["t8"]["tmp_name"], $target_file)){
$cn=makeconnection();
$s="insert into donarregistration(name,gender,age,mobile,b_id,email,pwd,pic)
values('" . $_POST["t1"] ."','" . $_POST["r1"] . "','" . $_POST["t2"] . "','" .
$_POST["t3"] . "','" . $_POST["t4"] . "','" . $_POST["t5"] . "','" . $_POST["t6"] .
"','" . basename($_FILES["t8"]["name"]) ."')";

//$s="INSERT INTO donarregistration(name,gender,age,mobile,b_id,email,pswd,pic)


VALUES ([value-1],[value-2],[value-3],[value-4],[value-5],[value-6],[value-7],[value-8],
[value-9])"
mysqli_query($cn,$s);
mysqli_close($cn);
if($s>0)
{
echo "<script>alert('Record Save');</script>";
}
else
{echo "<script>alert('Record save');</script>";
}
} else{
echo "sorry there was an error uploading your file.";
}

}
}
?>
</body>
</html>
$r=mysqli_num_rows($result);

6
3
//echo $r; <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Blood bank Management System</title>
<link href="css/lightbox.css" rel="stylesheet" />
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />

<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet'


type='text/css'>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!--slider-->
<link href="css/flexslider.css" rel="stylesheet" type="text/css" media="all" />
<script src="js/jquery-1.11.0.min.js"></script>
<script src="js/lightbox.min.js"></script>
<script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="js/jquery.flexslider.js" type="text/javascript"></script>

<script type="text/javascript">
$(function () {
SyntaxHighlighter.all();
});
$(window).load(function () {
$('.flexslider').flexslider({
animation: "slide",
animationLoop: false,
itemWidth: 210,
itemMargin: 5,
minItems: 2,

6
4
maxItems: 4,
start: function (slider) {
$('body').removeClass('loading');
}
});
});
</script>
</head>

<body>
<?php include('admin/function.php'); ?>

<div class="h_bg">
<div class="wrap">
<div class="header">
<div class="logo">
<h1><a href="index.php"><img src="Images/logo.png" alt=""></a></h1>
</div>
</div>
</div>
</div>
<div class="nav_bg">
<div class="wrap">
<?php require('header.php');?>
</div>
<div style="height:530px; width:500px; margin:auto; margin-top:10px; margin-
bottom:10px; background-color:#f8f1e4; border:2px solid red; box-shadow:4px 1px
20px black;">
<form method="post" enctype="multipart/form-data">

6
5
<table cellpadding="0" cellspacing="0" width="500px" height="480px"
style="margin:auto" >

<tr><td colspan="2" align="center"><img src="Images/brequest.png"


height="90px" /></td></tr>

<tr><td>&nbsp;</td><td>&nbsp;</td></tr>

<tr><td class="lefttd" align="center"> Name:</td><td><input type="text" name="t1"


required="required" pattern="[a-zA-Z _]{5,15}" title="please enter only character
between 5 to 15 for donor name" /></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td class="lefttd" align="center">Gender</td><td><input name="r1"
type="radio" value="male" checked="checked">Male<input name="r1"
type="radio" value="female">Female</td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td class="lefttd" align="center">Age</td><td><input type="number"
name="t2" required="required" pattern="[0-9]{2,2}" title="please enter only
numbers between 2 to 2 for age" /></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td class="lefttd" align="center">Mobile No</td><td><input type="number"
name="t3" required="required" pattern="[0-9]{10,12}" title="please enter only
numbers between 10 to 12 for mobile no." /></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td class="lefttd" align="center">Select Blood Group </td><td><select
name="t4" required><option value="">Select</option>
<?php
$cn=makeconnection();
$s="select * from bloodgroup";
$result=mysqli_query($cn,$s);

6
6
while($data=mysqli_fetch_array($result))
{
if(isset($_POST["show"])&& $data[0]==$_POST["s2"])
{
echo "<option value=$data[0] selected>$data[1]</option>";
}
else
{
echo "<option value=$data[0]>$data[1]</option>";
}

}
mysqli_close($cn);

?>

</select></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td class="lefttd" align="center">E-Mail</td><td><input type="email"
name="t5" required="required" /></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td class="lefttd" align="center">Till Required Date</td><td>
<select name="month">
<option value="1">JAN</option>
<option value="2">FEB</option>
<option value="1">MARCH</option>
6
7
<option value="1">APRIL</option>
<option value="1">MAY</option>
<option value="1">JUNE</option>
<option value="1">JULY</option>
<option value="1">AUG</option>
<option value="1">SEPT</option>
<option value="1">OCT</option>
<option value="1">NOV</option>
<option value="1">DEC</option>
</select>
<select name="day">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>

6
8
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>

<input type="text" name="year" style=" width:50px" /></td></tr>


<tr><td>&nbsp;</td></tr>
<tr><td class="lefttd" align="center">Detail</td><td><textarea
name="t7"></textarea></td></tr>
<tr><td>&nbsp;</td></tr>
<tr><td>&nbsp;</td><td><input type="submit" value="Submit" name="sbmt"
style="border:0px; background:linear-gradient(#900,#D50000); width:100px;
height:30px; border-radius:10px 1px 10px 1px; box-shadow:1px 1px 5px black;
color:white; font-weight:bold; font-size:14px; text-shadow:1px 1px 6px black;
"></td></tr></table>

</form>
</div>

<div class="clear"></div>
<div class="ftr-bg">

6
9
<div class="wrap">
<div class="footer">
<div class="f_nav">
<ul>
<li class="active"><a href="index.php">Home</a></li>
<li><a href="donar.php">Donor</a></li>
<li><a href="login.php">log In</a></li>
<li><a href="aboutus.php">About</a></li>
<li><a href="contact.php">Contact Us</a></li>

</ul>
</div>
<div class="copy">
<p class="title">© All Rights Reserved </p>
</div>
<div class="clear"></div>
</div>
</div>
</div>

<?php
if(isset($_POST["sbmt"]))
{

$cn=makeconnection();
$d=$_POST["year"]."/".$_POST["month"]."/".$_POST["day"];
$s="insert into requestes(name,gender,age,mobile,bgroup,email,reqdate,detail)
values('" . $_POST["t1"] ."','" . $_POST["r1"] . "','" . $_POST["t2"] . "','" .

7
0
$_POST["t3"] . "','" . $_POST["t4"] . "','" . $_POST["t5"] . "','" . $d . "','" .
$_POST["t7"] ."')";

$q=mysqli_query($cn,$s);
mysqli_close($cn);
if($q>0)
{
echo "<script>alert('Record Save');</script>";
}
else
{echo "<script>alert('Saving Record Failed');</script>";
}

?>
</body>
</html>

7
1
7
2

Das könnte Ihnen auch gefallen