You are on page 1of 103

D

VIDEO CD LIBRARY ARCHIEVING PROJECT

“VIDEO CD LIBRARY ARCHIEVING SYSTEM”


By
RASHMI RAJAK, PRIYANKA PAWAR
VIPIN KUMAR SINGH, SUDHEER KUMAR GAUTAM

In partial fulfillment of the requirement for award of Bachelor Degree


in Computer Application

Under the guidance of


Mr.Vivek Sir

DEPARTMENT OF COMPUTER SCIENCE

EXTOL INSTITUTE OF COMPUTER SCIENCE,


BHOPAL
(Affiliated to MakhanLal Chaturvedi University, Bhopal)
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

EXTOL INSTITUTE OF COMPUTER SCIENCE,


BHOPAL
(Affiliated to MakhanLal Chaturvedi University)

DEPARTMENT OF COMPUTER SCIENCE

CERTIFICATE

This is to certify that Rashmi Rajak, Priyanka Pawar, Vipin


Kumar Singh and Sudheer Kumar Gautam students of VI
semester Of BCA Dept. of Extol Institute of Computer Science,
Bhopal had submitted the project report on “VIDEO CD LIBRARY
ARCHIEVING SYSTEM” required for the fulfillment of the award of
Bachelor Degree in computer Application as scheduled.

Project Guide By H.O.D (BCA Dept.)


Mr. Vivek Sir Mr. Ravi Sharma
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

DECLARATION

We have declared that the Project entitled “video cd library management


System” Submitted by us for the partial fulfillment of (BCA) is carried out
by project group Comprising of “Rashmi Rajak , Priyanka Pawar, Vipin
Kumar Singh and Sudheer Kumar Gautam” in “under the guidance of
faculty of “Extol College of computer science”.
It is also certified that this project has not been submitted
to any other University or institute for the award of any examination.

Student Name Roll No. Enroll. No. College Signature


Rashmi Rajak Extol Institute of
computer science

Priyanka Pawar Extol Institute of


computer science
Vipin Kumar Extol Institute of
computer science
Singh
Sudheer Kumar Extol Institute of
computer science
Gautam
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

PREF
ACE
Programming languages, paradigms and practices
don’t stand still very long. It often seems that the
methods and techniques we applied yesterday are out
of date today of course this rapid rate of change is
also one of the things that keep programming
existing.
There is always something new on the horizon.
One characteristic that is constant in software
industry today is the “change”. Change is one of the
most critical aspects of s/w development and
management. New tools and new approaches are
announced almost e v e r y d a y. The impact of these
developments is often very extensive. Most important
among them is maintaining a b i l i t y, r e u s a b i l i t y,
p o r t a b i l i t y, s e c u r i t y, and integrity and user
friendliness.
To b u i l d t o d a y ’s c o m p l e x s / w w e n e e d t o w o u n d
construction techniques and program structures that
are easy to comprehend, implement and modify in
wide variety of situations.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

Knowledge is expression of experience gained in life.


It is the choicest possession that should be happily
shared with others.

In this regards we feel great pleasure in submitting this


major project synopsis on “video cd library
management system”. During this project, we
received a lot of help, advice and co-operation from
our esteemed faculty and other distinguished persons.

We wish to express our profound sense of gratitude


to Mr. “Ravi Sir” (H.O.D.) for their valuable
guidance through the course of project without
whose encouragement the project wouldn’t have
been a success. We would also like to thank our
project guide’s. “Vivek Sir” (Extol College of
Computer science) whose willingness and
spontaneous suggestion encourage us tremendously
to pursue our goal.
We are grateful to college authorities for
their support and all those who have directly or indirectly
helped us during the project work.

Project Members:

Rashmi Rajak
Priyanka Pawar
Vipin Kumar Singh
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

Sudheer Kumar Gautam

CONTENTS
S.NO Content Page
No.
1. Cover page
2. Declaration
3. Certification
4. Acknowledgement

5. Chapter 1- Introduction
 About Project
6. Chapter 2- Objectives
7. Chapter 3- CD Library Management
 Identification Of Need
 Preliminary Investigation
8. Chapter 4- Advantages
9. Chapter 5- Drawbacks
10. Chapter 6- S/W And H/w Requirements

11. Chapter 7- CD LIBRARY Design

12. Chapter 8- Code Efficiency

13. Chapter 9- Optimization of Code


D
VIDEO CD LIBRARY ARCHIEVING PROJECT

14. Chapter 10- Validation Checks

15. Chapter 12- CONCLUSION

16. Chapter 13- BIBILIOGRAPHY


D
VIDEO CD LIBRARY ARCHIEVING PROJECT

INTRODUCTION
TO”PROJECT”

This system will help their customers to find products


as per their query in less time. User can search any
particular video cd using their year of release, any
particular song name, artist details, film name etc.
Thus saving their time and eliminating the process of
searching manually.

Admin will only have the authority


to add records, delete records, modify any existing
records, giving permission to any employee. Admin
can generate reports as per their requirement. Admin
will also able to add vendor details from where they
purchased along with Video CD name, price of CD
and date of purchase. Admin can check the sells and
purchase records by using information stored in the
database.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

Working employee will have a valid


user name and Password. Employee will be eligible to
generate bills for the customers and receive payments. When
the employee will enter the first letter of the Video CD, then a
list of available CD will appear from where they can select the
name of CD. After selecting the name, its price with its details
will appear on the screen. They have to only enter the total
number of quantity or items, then after system will generate
the total amount which is to be paid by the customer.

Some modules of video cd library management. :-


Account Configuration :

Search CD: When a new employee joins the company, his record
is saved in the database.

Make new CD: Here the Admin can add the details of the CD
which are available in the CD library. He also has the right to
modify or delete it from the database.

Request : As soon as the employee joins the company, the admin


provides unique username and password to him.Admin :As the
customer purchases the CD and comes to the billing counter, the
user (Admin or the end user) is supposed to enter the name of the
CD he/ she purchased. As the user enters the first letter of the name
of the CD, all the CD’s name whose particular name starts with the
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

letter entered will be displayed. The user can select out of those
displayed. Finally a separate will be generated for each customer.
Delete : If the stocks of the Cd’s are not available, the shop owner
orders and buys from a prescribed vendor. The amount will be paid
by deducting the total amount acquired in the sales activity.

Display: A user can view information regarding CD’s available.

INTRODUCTION to Video CD Library


Management System :

Objective: The “Video CD Library Management System”


objectives are to provide software to maintain the selling of CD’s
in the shop. The user will consume less time in generating correct
reports and bill using this automated system. This system will be
able to keep track of all the records. The data will be stored in the
database and it is very easy to store as the system is user friendly.

Scope:This system is very helpful to keep track the sales activity


of CD and for maintaining the records

PROJECT CATEGORY:
RDMS

PROJECT DESCRIPTION:
The first activity in the software “Video CD
Library Management System” is based on adding the names of
the CD’s to the software which are in the CD library. Only the
Admin has the special authority to add the record, modify it or
delete the record from the database. As the customer purchases the
CD and comes to the billing counter, the user (Admin or the end
user) is supposed to enter the name of the CD he/ she purchased.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

As the user enters the first letter of the name of the CD, all the
CD’s name whose particular name starts with the letter entered will
be displayed. The user can select out of those displayed. Finally a
separate will be generated for each customer. This will be saved in
the database.

Reports can be checked of how


many CD’s sold for a particular month/ year. The admin also has
the authority to provide unique username and password for each
user working in that shop.
Account Configuration:

Employee: When a new employee joins the company, his


record is saved in the database.

CD: Here the Admin can add the details of the CD which are
available in the CD library. He also has the right to modify or
delete it from the database.

Registration: As soon as the employee joins the company,


the admin provides unique username and password to him.

Sales:As the customer purchases the CD and comes to the


billing counter, the user (Admin or the end user) is supposed
to enter the name of the CD he/ she purchased. As the user
enters the first letter of the name of the CD, all the CD’s
name whose particular name starts with the letter entered will
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

be displayed. The user can select out of those displayed.


Finally a separate will be generated for each customer.

Vendor Order: If the stocks of the Cd’s are not available, the shop
owner orders and buys from a prescribed vendor. The amount will
be paid by deducting the total amount acquired in the sales activity.
Stock entry: The items bought from the vendor will be entered
here and this will be added to the stock.

Indent Report: This provides the report of the CD’s sold for a
particular month/ year and also gives the total amount acquired.

Vendor Report: This provides the report of the CD’s bought from
a vendor for a particular month/ year and also gives the total
amount spent.

Display: A user can view information regarding CD’s available.

Logout: This module allows the user to Logout the application.


Further operations cannot be performed after user exits
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

Tools Used To Develop The


PROJECT

 H A R D WA R E
 S O F T WA R E

H ARDWARE :

Hard Disk: 20 GB HDD


RAM: 32 MB
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

Floppy Disk Drive: 1.44 FDD


Monitor: 15” Color Monitor
CD Drive: 40X CD ROM

Memory Disk Space 50 MB.

S OFTWARE :

The software is developed in Mysql edition as

back-end that is to store data. The front-end is

PHP .The PHP is very strong programming

language. The software design in PHP Is very user

friendly that it can be operate and maintained


D
VIDEO CD LIBRARY ARCHIEVING PROJECT

w i t h l i t t l e e x p e r t i s e o n t h e c o m p u t e r. T h e

technical specification of requirements for the

S OFTWARE IS AS FOLLOWS : -

a. D ATA B A S E - Microsoft SQL server 2008


b. PHP
c. E D I T E R : - M I C R O M I D E A D R E A M W E AV E R 8
d. OS :- WINDOWS
D
VIDEO CD LIBRARY ARCHIEVING PROJECT
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

INTRODUCTION TO
“PHP”

 PHP stands for PHP: Hypertext Preprocessor


 PHP is a server-side scripting language, like ASP
 PHP scripts are executed on the server
 PHP supports many databases (MySQL, Informix, Oracle,
Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
 PHP is an open source software
 PHP is free to download and use

Various Facilities Provided By


php
WE may be attracted to PHP because it's free, because it's easy to learn,
or because your boss told you that you need to start working on a PHP project next week.
Since you're going to use PHP, you need to know a little bit about what makes it special.

 PHP Is Free (as in Money): - You don't have to pay anyone to use PHP.
Whether you run the PHP interpreter on a beat-up 10-year-old PC in your
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

basement or in a room full of million-dollar "enterprise-class" servers, there are


no licensing fees, support fees, maintenance fees, upgrade fees, or any other kind
of charge.

 PHP Is Free (as in Speech):-

As an open source project, PHP makes its innards available


for anyone to inspect. If it doesn't do what you want, or you're just
curious about why a feature works the way it does, you can poke
around in the guts of the PHP interpreter (written in the C
programming language) to see what's what. Even if you don't have the
technical expertise to do that, you can get someone who does to do the
investigating for you. Most people can't fix their own cars, but it's nice
to be able to take your car to a mechanic who can pop open the hood
and fix it.

 PHP Is Cross-Platform :-

You can use PHP with a web server computer that runs Windows,
Mac OS X, Linux, Solaris, and many other versions of Unix. Plus, if you
switch web server operating systems, you generally don't have to change any
of your PHP programs. Just copy them from your Windows server to your
Unix server, and they will still work.

While Apache is the most popular web server program used with PHP, you
can also use Microsoft Internet Information Server and any other web server
that supports the CGI standard. PHP also works with a large number of
databases including MySQL, Oracle, Microsoft SQL Server, Sybase, and
PostgreSQL. In addition, it supports the ODBC standard for database
interaction.

If all the acronyms in the last paragraph freak you out, don't worry. It boils
down to this: whatever system you're using, PHP probably runs on it just
fine and works with whatever database you are already using.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

 PHP Is Widely Used :-

As of March 2004, PHP is installed on more than 15 million different web


sites, from countless tiny personal home pages to giants like Yahoo!. There
are many books, magazines, and web sites devoted to teaching PHP and
exploring what you can do with it. There are companies that provide support
and training for PHP. In short, if you are a PHP user, you are not alone.

 PHP Hides Its Complexity

We can build powerful e-commerce engines in PHP that handle millions of


customers. You can also build a small site that automatically maintains links
to a changing list of articles or press releases. When you're using PHP for a
simpler project, it doesn't get in your way with concerns that are only
relevant in a massive system. When you need advanced features such as
caching, custom libraries, or dynamic image generation, they are available.
If you don't need them, you don't have to worry about them. You can just
focus on the basics of handling user input and displaying output.

 PHP Is Built for Web Programming

Unlike most other programming languages, PHP was created from the
ground up for generating web pages. This means that common web
programming tasks, such as accessing form submissions and talking to a
database, are often easier in PHP. PHP comes with the capability to format
HTML, manipulate dates and times, and manage web cookies — tasks that
are often available only as add-on libraries in other programming languages.

 PHP in Action

This section contains a few program listings and explanations of what they
do. If you don't understand everything going on in each listing, don't worry!
That's what the rest of the book is for. Read these listings to get a sense of
what PHP programs look like and an outline of how they work. Don't sweat
the details yet.

When given a program to run, the PHP interpreter pays attention only to the
parts of the program between PHP start and end tags. Whatever's outside
those tags is printed with no modification. This makes it easy to embed
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

small bits of PHP in pages that mostly contain HTML. The PHP interpreter
runs the commands between <?php (the PHP start tag) and ?> (the PHP end
tag). PHP pages typically live in files whose names end in php.

Basic Rules of PHP Programs

This section lays out some ground rules about the structure of PHP
programs. More foundational than the basics such as "how do I print
something" or "how do I add two numbers", these proto-basics are the
equivalent of someone telling you that you should read pages in this book
from top to bottom and left to right, or that what's important on the page are
the black squiggles, not the large white areas.

If you've had a little experience with PHP already or you're the kind of
person that prefers playing with all the buttons on your new DVD player
before going back and reading in the manual about how the buttons actually
work, feel free to skip ahead to now and flip back here later. If you forge
ahead to write some PHP programs of your own, and they're behaving
unexpectedly or the PHP interpreter complains of "parse errors" when it tries
to run your program, revisit this section for a refresher.

Start and End Tags

Each of the examples you've already seen in this chapter uses <?php as the
PHP start tag and ?> as the PHP end tag. The PHP interpreter ignores
anything outside of those tags. Text before the start tag or after the end tag is
printed with no interference from the PHP interpreter.

A PHP program can have multiple start and end tag pairs, as shown in

Example 1. Multiple start and end tags


Five plus five is:

<?php print 5 + 5; ?>

<p>

Four plus four is:

<?php

print 4 + 4;
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

?>

<p>

<img src="vacation.jpg" alt="My Vacation">

The PHP source code inside each set of <?php ?> tags is processed by the PHP
interpreter, and the rest of the page is printed as is. Example 1-8 prints:

Five plus five is:

10<p>

Four plus four is:

8<p>

<img src="vacation.jpg" alt="My Vacation">

Some older PHP programs use <? as a start tag instead of <?php. The <? is called the
short open tag, since it's shorter than <?php. It's usually better to use the regular <?php
open tag since it's guaranteed to work on any server running the PHP interpreter. The
short tag can be turned on or off with a PHP configuration setting. Appendix A shows
you how to modify your PHP configuration to control which open tags are valid in your
programs.

The rest of the examples in this chapter all begin with the <?php start tag and end with ?
>. In subsequent chapters, not all the examples have start and end tags — but remember,
your programs need them for the PHP interpreter to recognize your code.

Whitespace and Case-Sensitivity

Like all PHP programs, the examples in this section consist of a series of
statements, each of which end with a semicolon. You can put multiple PHP
statements on the same line of a program as long as they are separated with a
semicolon. You can put as many blank lines between statements as you
want. The PHP interpreter ignores them. The semicolon tells the interpreter
that one statement is over and another is about to begin. No whitespace at all
or lots and lots of whitespace between statements doesn't affect the
program's execution. (Whitespace is programmer-speak for blank-looking
characters such as space, tab, and newline.)
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

In practice, it's good style to put one statement on a line and to put blank
lines between statements only when it improves the readability of your
source code..

Example. This PHP is too cramped


<?php print "Hello"; print " World!"; ?>

Example This PHP is too sprawling


<?php

print "Hello";

print " World!";

?>

Example . This PHP is just right


<?php

print "Hello";

print " World!";

?>

In addition to ignoring whitespace between lines, the PHP interpreter also ignores
whitespace between language keywords and values. You can have zero spaces, one space,
or a hundred spaces between print and "Hello, World!" and again between "Hello,
World!" and the semicolon at the end of the line.

Good coding style is to put one space between print and the value being printed and
then to follow the value immediately with a semicolon. Example shows three lines, one
with too much spacing, one with too little, and one with just the right amount.

Example. Spacing
<?php

print "Too many spaces" ;

print"Too few spaces";


D
VIDEO CD LIBRARY ARCHIEVING PROJECT
print "Just the right amount of spaces";

?>

Language keywords (such as print) and function names


(such as number_format) are not case-sensitive. The PHP interpreter doesn't care
whether you use uppercase letters, lowercase letters, or both when you put these
keywords and function names in your programs. The statements in Exampl are identical
from the interpreter's perspective.

Example. Keywords and function names are case-insensitive


// These four lines all do the same thing

print number_format(285266237);

PRINT Number_Format(285266237);

Print number_format(285266237);

pRiNt NUMBER_FORMAT(285266237);

Comments:-

As WE 've seen in some of the examples in this chapter, comments


are a way to explain to other people how your program works.
Comments in source code are an essential part of any program.
When you're coding, what you are writing may seem crystal clear
to you at the time. A few months later, however, when you need to
go back and modify the program, your brilliant logic may not be so
obvious. That's where comments come in. By explaining in plain
language how the programs work, comments make programs much
more understandable.

Comments are even more important when the person who needs to
modify the program isn't the original author. Do yourself and
anyone else who might have occasion to read your source code a
favor and fill your programs with a lot of comments.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

Perhaps because they're so important, PHP provides many ways to


put comments in your programs. One syntax you've seen already is
to begin a line with //. This tells the PHP interpreter to treat
everything on that line as a comment. After the end of the line, the
code is treated normally. This style of comment is also used in
other programming languages such as C++, JavaScript, and Java.
You can also put // on a line after a statement to have the
remainder of the line treated as a comment. PHP also supports the
Perl- and shell-style single-line comments. These are lines that
begin with #. You can use # to start a comment in the same places
that you can use //, but the modern style prefers // over #. Some
single-line comments are shown in Example.
Example 1-14. Single-line comments with // or #
// This line is a comment

print "Smoked Fish Soup ";

print 'costs $3.25.';

# Add another dish to the menu

print 'Duck with Pea Shoots ';

print 'costs $9.50.';

// You can put // or # inside single-line comments

// Using // or # somewhere else on a line also starts a comment

print 'Shark Fin Soup'; // I hope it's good!

print 'costs $25.00!'; # This is getting expensive!

# Putting // or # inside a string doesn't start a comment

print 'http://www.example.com';

print 'http://www.example.com/menu.php#dinner';

For a multiline comment, start the comment with /* and end with */. Everything
between the /* and */ is treated as a comment by the PHP interpreter. Multiline
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

comments are useful for temporarily turning off a small block of code. Example 1-15
shows some multiline comments

Example. Multiline comments


/* We're going to add a few things to the menu:

- Smoked Fish Soup

- Duck with Pea Shoots

- Shark Fin Soup

*/

print 'Smoked Fish Soup, Duck with Pea Shoots, Shark Fin Soup ';

print 'Cost: 3.25 + 9.50 + 25.00';

/* This is the old menu:

The following lines are inside this comment so they don't get executed.

print 'Hamburger, French Fries, Cola ';

print 'Cost: 0.99 + 1.25 + 1.50';

*/

There is no strict rule in PHP about which comment style is the best. Multiline comments
are often the easiest to use, especially when you want to comment out a block of code or
write a few lines describing a function. However, when you want to tack on a short
explanation to the end of a line, a //-style comment fits nicely. Use whichever comment
style you feel most comfortable with.

Text

When they're used in computer programs, pieces of text are called strings. This is because
they consist of individual characters, strung together. Strings can contain letters, numbers,
punctuation, spaces, tabs, or any other characters. Some examples of strings are I would
like 1 bowl of soup, and "Is it too hot?" he asked, and There's no spoon!. A
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

string can even contain the contents of a binary file such as an image or a sound. The only
limit to the length of a string in a PHP program is the amount of memory your computer
has.

Defining Text Strings


There are a few ways to indicate a string in a PHP program. The simplest is
to surround the string with single quotes:

print 'I would like a bowl of soup.';

print 'chicken';

print '06520';

print '"I am eating dinner," he growled.';

Since the string consists of everything inside the single quotes, that's what is
printed:

I would like a bowl of soup.chicken06520"I am eating dinner," he growled.

The output of those four print statements appears all on one line. No
linebreaks are added by print.

You may also see echo used in some PHP programs to print text. It works
just like print.

The single quotes aren't part of the string. They are delimiters, which tell the
PHP interpreter where the start and end of the string is. If you want to
include a single quote inside a string surrounded with single quotes, put a
backslash (\) before the single quote inside the string:

print 'We\'ll each have a bowl of soup.';


D
VIDEO CD LIBRARY ARCHIEVING PROJECT

The \' sequence is turned into ' inside the string, so what is printed is:

We'll each have a bowl of soup.

The backslash tells the PHP interpreter to treat the following character as a
literal single quote instead of the single quote that means "end of string."
This is called escaping, and the backslash is called the escape character. An
escape character tells the system to do something special with the character
that comes after it. Inside a single-quoted string, a single quote usually
means "end of string." Preceding the single quote with a backslash changes
its meaning to a literal single quote character.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

M
Y
S
Q
L
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

Introduction to my sql :-
Overview
The SQL language and relational database systems based on it are one of the
most important foundation technologies in the computer industry today.
Over the last decade, the popularity of SQL has exploded, and it stands
today as the standard computer database language. Literally hundreds of
database products now support SQL, running on computer systems from
mainframes to personal computers and even handheld devices. An official
international SQL standard has been adopted and expanded twice.
Virtually every major enterprise software product relies on SQL for its data
management, and SQL is at the core of the database products from Microsoft
and Oracle, two of the largest software companies in the world. From its
obscure beginnings as an IBM research project, SQL has leaped to
prominence as both an important computer technology and a powerful
market force.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

The SQL Language


1. SQL is a tool for organizing, managing, and retrieving data
stored by a computer database. The name "SQL" is an
abbreviation for Structured Query Language.

2. For historical reasons, SQL is usually pronounced "sequel," but


the alternate pronunciation "S.Q.L." is also used. As the name
implies, SQL is a computer language that you use to interact
with a database.

3. In fact, SQL works with one specific type of database, called a


relational database. The computer system in the figure has a
database that stores important information. If the computer
system is in a business, the database might store inventory,
production, sales, or payroll data.

4. On a personal computer, the database might store data about


the checks you have written, lists of people and their phone
numbers, or data extracted from a larger computer system. The
computer program that controls the database is called a
database management system, or DBMS.

5. When you need to retrieve data from a database, you use the SQL
language to make the request. The DBMS processes the SQL request,
retrieves the requested data, and returns it to you. This process of
requesting data from a database and receiving back the results is
called a database query—

6. hence the name Structured Query Language. The name Structured


Query Language is actually somewhat of a misnomer. First of all,
SQL is far more than a query tool, although that was its original
purpose and retrieving data is still one of its most important functions.

SQL is used to control all of the functions that a DBMS provides for its
users, including:
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

• Data definition. SQL lets a user define the structure and organization of
the stored data and relationships among the stored data items.

• Data retrieval. SQL allows a user or an application program to retrieve


stored data from the database and use it.

•Data manipulation. SQL allows a user or an application program to


update the database by adding new data, removing old data, and
modifying previously stored data.

• Access control. SQL can be used to restrict a user's ability to retrieve,


add, and modify data, protecting stored data against unauthorized access.

• Data sharing. SQL is used to coordinate data sharing by concurrent


users, ensuring that they do not interfere with one another.

• Data integrity. SQL defines integrity constraints in the database,


protecting it from corruption due to inconsistent updates or system
failures.
SQL is thus a comprehensive language for
controlling and interacting with a database management system.
Second, SQL is not really a complete computer language like COBOL, C,
C++, or Java.

SQL contains no IF statement for testing conditions,


and no GOTO, DO, or FOR statements for program flow control. Instead,
SQL is a database sublanguage, consisting of about forty statements
specialized for database management tasks.

These SQL statements can be embedded into


another language, such as COBOL or C, to extend that language for use in
database access. Alternatively, they can be explicitly sent to a database
management system for processing, via a call level interface from a
language such as C, C++, or Java.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

Finally, SQL is not a particularly structured


language, especially when compared to highly structured languages such
as C, Pascal, or Java. Instead, SQL statements resemble
English sentences, complete with "noise words" that don't add to the
meaning of the statement but make it read more naturally. There are quite
a few inconsistencies in the

SQL language, and there are also some special


rules to prevent you from constructing SQL statements that look perfectly
legal, but don't make sense.
Despite the inaccuracy of its name, SQL has
emerged as the standard language for using relational databases. SQL is
both a powerful language and one that is relatively easy to learn. The
quick tour of SQL in the next chapter will give you a good overview of
the language and its capabilities.

The Role of SQL:- SQL is not itself a database management


system, nor is it a stand-alone product. You cannot go into a
computer store and "buy SQL." Instead, SQL is an integral part of
a database management system, a language and a tool for
communicating with the DBMS.
.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

-
.
Figure Components of a typical database management system
The database engine is the heart of the DBMS, responsible for actually
structuring, storing, and retrieving the data in the database. It accepts SQL
requests from other
DBMS components, such as a forms facility, report writer, or interactive
query facility, from user-written application programs, and even from other
computer systems. As the
\
1.SQL is an interactive query language. Users type SQL commands into an
interactive.

2.SQL program to retrieve data and display it on the screen, providing a


convenient, easy-to-use tool for ad hoc database queries.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

3.SQL is a database programming language. Programmers embed SQL


commands into their application programs to access the data in a database.
Both user-written programs and database utility programs (such as report
writers and data entry tools) use this technique for database access.

4. SQL is a database administration language. The database administrator


responsible for managing a minicomputer or mainframe database uses SQL
to define the database structure and control access to the stored data.

5. SQL is a client/server language. Personal computer programs use SQL to


communicate over a network with database servers that store shared data.
This client/server architecture has become very popular for enterprise-class
applications.

6.SQL is an Internet data access language. Internet web servers that interact
with corporate data and Internet applications servers all use SQL as a
standard language for accessing corporate databases.

7.SQL is a distributed database language. Distributed database management


systems use SQL to help distribute data across many connected computer
systems. The DBMS software on each system uses SQL to communicate
with the other systems, sending requests for data access.

8.SQL is a database gateway language. In a computer network with a mix of


different DBMS products, SQL is often used in a gateway that allows one
brand of DBMS to communicate with another brand.

9.SQL has thus emerged as a useful, powerful tool for linking people,
computer programs, and computer systems to the data stored in a relational
database.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

SQL DATA BASE Features and Benefits:-

SQL is both an easy-to-understand language and a comprehensive tool for


managing data. Here are some of the major features of SQL and the market
forces that have made it successful:

• Vendor independence
• Portability across computer systems
• SQL standards
• IBM endorsement (DB2)
• Microsoft commitment (ODBC and ADO)
• Relational foundation
• High-level, English-like structure
• Interactive, ad hoc queries
- 12 -
• Programmatic database access
• Multiple views of data
• Complete database language
• Dynamic data definition
• Client/server architecture
• Extensibility and object technology
• Internet database access
• Java integration (JDBC)
These are the reasons why SQL has
emerged as the standard tool for managing data on personal computers,
minicomputers, and mainframes. They are described in the sections that
follow.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

1. Vendor Independence: - SQL is offered by all of the leading DBMS


vendors, and no new database product over the last decade has been
highly successful without SQL support. A SQL-based database and
the programs that use it can be moved from one DBMS to another
vendor's DBMS with minimal conversion effort and little retraining of
personnel. PC database tools, such as query tools, report writers, and
application generators, work with many different brands of SQL
databases. The vendor independence thus provided by SQL was one
of the most important reasons for its early popularity and remains an
important feature today.

2. Portability Across Computer Systems :- SQL-based database


products run on computer systems ranging from mainframes and
midrange systems to personal computers, workstations, and even
handheld devices.
They operate on stand-alone
computer systems, in departmental local area networks, and in enterprise-
wide or Internet-wide networks. SQL-based applications that begin on
single-user systems can be moved to larger server systems as they grow.
Data from corporate SQL-based databases can be extracted and downloaded
into departmental or personal databases. Finally, economical personal
computers can be used to prototype a SQL-based database application before
moving it to an expensive multi-user system.

3. SQL Standards:- An official standard for SQL was initially


published by the American National Standards Institute (ANSI) and
the International Standards Organization (ISO) in 1986, and was
expanded in 1989 and again in 1992. SQL is also a U.S. Federal
Information Processing Standard (FIPS), making it a key requirement
for large government computer contracts.
Over the years, other international, government, and vendor groups have
pioneered the standardization of new SQL capabilities, such as call-level
interfaces or object-based extensions. Many of these new initiatives have
been incorporated into the ANSI/ISO standard over time. The evolving
standards serve as an official stamp of approval for
SQL and have speeded its market acceptance.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

IBM's initial work provided a clear signal of IBM's direction for


other database and system vendors to follow early in the development of
SQL and relational databases. Later, IBM's commitment and broad support
speeded the market acceptance of SQL.

4. Microsoft Commitment (ODBC and ADO):- Microsoft has long


considered database access a key part of its Windows personal
computer software architecture. Both desktop and server versions of
Windows provide standardized relational database access through
Open Database Connectivity (ODBC), a SQL-based call-level API.
Leading Windows software applications (spreadsheets, word
processors, databases, etc.) from Microsoft and other vendors support
ODBC, and all leading SQL databases provide ODBC access.
Microsoft has enhanced ODBC support with higher-level, more
object-oriented database access layers as part of its Object Linking
and Embedding technology (OLE DB), and more recently as part of
Active/X (Active/X Data Objects, or ADO).

5. Relational Foundation:- SQL is a language for relational databases,


and it has become popular along with the relational database model.
The tabular, row/column structure of a relational database is intuitive
to users, keeping the SQL language simple and easy to understand.
The relational model also has a strong theoretical foundation that has
guided the evolution and implementation of relational databases.
Riding a wave of acceptance brought about by the success of the
relational model, SQL has become the database language for
relational databases.

6. High-Level, English-Like Structure :- SQL statements look like


simple English sentences, making SQL easy to learn and understand.
This is in part because SQL statements describe the data to be
retrieved, rather than specifying how to find the data. Tables and
columns in a SQL database can have long, descriptive names. As a
result, most SQL statements "say what they mean" and can be read as
clear, natural sentences.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

7. Interactive, Ad Hoc Queries:- SQL is an interactive query language


that gives users ad hoc access to stored data. Using SQL interactively,
a user can get answers even to complex questions in minutes or
seconds, in sharp contrast to the days or weeks it would take for a
programmer to write a custom report program. Because of SQL's ad
hoc query power, data is more accessible and can be used to help an
organization make better, more informed decisions. SQL's ad hoc
query capability was an important advantage over non-relational
databases early in its evolution and more recently has continued as a
key advantage over pure object-based databases.

8. Programmatic Database Access:- SQL is also a database language


used by programmers to write applications that access a database. The
same SQL statements are used for both interactive and programmatic
access, so the database access parts of a program can be tested first
with interactive SQL and then embedded into the program. In
contrast, traditional databases provided one set of tools for
programmatic access and a separate query facility for ad hoc requests,
without any synergy between the two modes of access.

9. Multiple Views of Data:- Using SQL, the creator of a database can


give different users of the database different views of its structure and
contents. For example, the database can be constructed so that each
user sees data for only their department or sales region. In addition,
data from several different parts of the database can be combined and
presented to the user as a simple row/column table. SQL views can
thus be used to enhance the security of a database and tailor it to the
particular needs of individual users.

10. Complete Database Language:- SQL was first developed as an ad


hoc query language, but its powers now go far beyond data retrieval.
SQL provides a complete, consistent language for creating a database,
managing its security, updating its contents, retrieving data, and
sharing data among many concurrent users. SQL concepts that are
learned in one part of the language can be applied to other SQL
commands, making users more productive.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

11. Dynamic Data Definition :- Using SQL, the structure of a database


can be changed and expanded dynamically, even while users are
accessing database contents. This is a major advance over static data
definition languages, which prevented access to the database while its
structure was being changed. SQL thus provides maximum flexibility,
allowing a database to adapt to changing requirements while on-line
applications continue uninterrupted.

12.Client/Server Architecture:- SQL is a natural vehicle for


implementing applications using a distributed, client/server
architecture. In this role, SQL serves as the link between "front-end"
computer systems optimized for user interaction and "back-end"
systems specialized for database management, allowing each system
to do what it does best. SQL also allows personal computers to
function as front-ends to network servers or to larger minicomputer
and mainframe databases, providing access to corporate data from
personal computer applications

13.. Extensibility and Object Technology :- The major challenge to


SQL's continued dominance as a database standard has come from the
emergence of object-based programming, and the introduction of
object-based databases as an extension of the broad market trend
toward object-based technology. SQL-based database vendors have
responded to this challenge by slowly expanding and enhancing SQL
to include object features. These "object/relational" databases, which
continue to be based on SQL, have emerged as a more popular
alternative to "pure object" databases and may insure SQL's
continuing dominance for the next decade.

14.Internet Database Access:- With the exploding popularity of the


Internet and the World Wide Web, and their standards-based
foundation, SQL found a new role in the late 1990s as an Internet data
access standard. Early in the development of the Web, developers
needed a way to retrieve and present database information on web
pages and used SQL as a common language for database gateways.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

15. Java Integration (JDBC):- One of the major new areas of SQL
development is the integration of SQL with Java. Seeing the need to
link the Java language to existing relational databases, Sun
Microsystems (the creator of Java) introduced Java Data Base
Connectivity (JDBC), a standard API that allows Java programs to use
SQL for database access. Many of the leading database vendors have
also announced or implemented Java support within their database
systems, allowing Java to be used as a language for stored procedures
and business logic within the database itself. This trend toward
integration between Java and SQL will insure the continued
importance of SQL in the new era of Java-based programming.

Overview :- Before diving into the details of SQL, it's a good idea to
develop an overall perspective on the language and how it works. This
chapter contains a quick tour of SQL that illustrates its major features and
functions. The goal of the quick tour is not to make you proficient in writing
SQL statements.

.
.
Retrieving Data
let's list the sales offices, showing the city where each one is located and its
yearto-
date sales. The SQL statement that retrieves data from the database is called
SELECT. This SQL statement retrieves the data you want:

SELECT CITY, OFFICE, SALES


FROM OFFICES
CITY OFFICE SALES
------------ ------ -----------
The SELECT statement asks for three pieces of data—the city, the office
number, and the sales—for each office. It also specifies that the data comes
from the OFFICES table, which stores data about sales offices. The results
of the query appear, in tabular form, immediately after the request.
The SELECT statement is used for all SQL queries. For example, here is a
query that lists the names and year-to-date sales for each salesperson in the
database. It also shows the quota (sales target) and the office number where
each person works. In this case, the
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

data comes from SALESREPS table:

SELECT NAME, REP_OFFICE, SALES, QUOTA


FROM SALESREPS
NAME REP_OFFICE SALES QUOTA
-------------- ---------- ----------- -----------

1.This quick tour of SQL showed you what SQL can do and illustrated the
style of the SQL language, using eight of the most commonly used SQL
statements.

To summarize:

1.SQL is used to retrieve data from the database, using the SELECT
statement. You can retrieve all or part of the stored data, sort it, and ask SQL
to summarize the data, using totals and averages.

2.SQL is used to update the database, by adding new data with the INSERT
statement, deleting data with the DELETE statement, and modifying
existing data with the UPDATE statement.

3.SQL is used to control access to the database, by granting and revoking


specific privileges for specific users with the GRANT and REVOKE
statements.

4.SQL is used to create the database by defining the structure of new tables
and dropping tables when they are no longer needed, using the CREATE and
DROP statements.

The structure of a SQL statement


Major SQL Statements

Data Manipulation:-
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

SELECT :- Retrieves data from the database

INSERT:- Adds new rows of data to the database

DELETE :- Removes rows of data from the database

UPDATE:- Modifies existing database data

Data Definition:-

CREATE TABLE:- Adds a new table to the database

DROP TABLE :- Removes a table from the database

ALTER TABLE:- Changes the structure of an existing table

CREATE VIEW:- Adds a new view to the database

DROP VIEW:- Removes a view from the database

CREATE INDEX :- Builds an index for a column

DROP INDEX:- Removes the index for a column

CREATE SCHEMA :- Adds a new schema to the database

DROP SCHEMA:- Removes a schema from the database

CREATE DOMAIN :- Adds a new data value domain

ALTER DOMAIN:- Changes a domain definition

DROP DOMAIN:- Removes a domain from the database

Access Control:-
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

GRANT :- Grants user access privileges.

REVOKE:- Removes user access privileges

Transaction Control :-

COMMIT :- Ends the current transaction

ROLLBACK:- Aborts the current transaction

SET TRANSACTION :- Defines data access characteristics of the current


transaction
Programmatic
SQL
DECLARE
D efines a cursor for a query
EXPLAIN
Describes the data access plan for a query
OPEN
Opens a cursor to retrieve query results
FETCH
R etrieves a row of query results
CLOSE:- Closes a cursor
PREPARE
Prepares a SQL statement for dynamic execution
EXECUTE
Executes a SQL statement dynamically
DESCRIBE
D escribes a prepared query
Every SQL statement begins with a verb, a keyword that describes what the
statement
does. CREATE, INSERT, DELETE, and COMMIT are typical verbs. The
statement
continues with one or more clauses.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

DATA DESIGNER :-

DATA DESIGNER :-
Admin

Column Type Null Default Comments MIME


admin_id int(11) No
admin_name varchar(10) No
password varchar(10) No

Indexes
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

Keyname Type Unique Packed Column Cardinality Collation Null Comment


PRIMARY BTREE Yes No admin_id 1 A No

STRUCTURED ANALYSIS

Structured analysis is the set of techniques and graphical tool that


allow the analyst to develop a new kind of system specification that are
easily understandable to the users. It way to on function rather than
physical implementation. The traditional approach focuses on cost and
benefit analysis, feasibility analysis, project management, hardware and
software section and personal consideration in contrast, structured
considers new goals and structured tools for analysis. There are different
tools structured system analyses; some of them are as follows:

 DATA FLOW DIAGRAM

 DATA DICTIONARY

 STRUCTURED ANALYSIS

 DECISION TREE
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

DATA FLOW DIAGRAM

 The DFD was first developed by Larry Constantine as a way of


expressing system requirement in a graphical form. A DFD also
known as bubble chart has a purpose of clarifying system
requirement and identifying major transformation that will become
the program in the system design.

DFD SYMBOL:-

 Square: -A square defines a source or destination of system data.

 Arrow:-An arrow identifies data or data in motion, it is a pipeline


through which information flows.

 Circle or Bubble :-It represents a process transforms in coming in


data flow in to out going data flow.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

 Open rectangle:-It is data store or data at rest.

FEASIBILITY
CONSIDERATIONS
 There are three essential considerations that are involved in
feasibility analysis :
1) Technical Feasibility
2) Behavioral feasibility
3) Economic feasibility
1) Technical feasibility:-Technical feasibility centers on the existing
computer system (hardware, software etc.) and to what extent. It
can support the proposed addition for example, if the current ids
operating 80% capacity and arbitrary ceiling then running another
application could overload the system or required additional
hardware. This involves financial consideration to accommodate
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

technical enhancement .If the budget is a serious constraint, when


the project is not feasible. The purpose system was found to be
technically feasible in all respect.

2) Economical Feasibility:-Economic analysis is most frequent


method used for evaluating the effectiveness of candidate system.
More commonly known as cost and benefit analysis, the procedures
is to determine the benefits and saving that are expected from a
candidate system and

Compare then with the cost. The purposed system is economically


feasible and fulfill all the requirement of the existing with much more
accuracy lots of paper work will be reduced and time consumed will
become minimum. In short it will over weigh the existing system in cost
compared to benefit.

3) Behavioral feasibility:-People are inherently resistant to change,


and computers have been now to facilitate change .An estimate
should be made be how strong is user staff is likely to have towards
the development of computerized system.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

Steps in feasibility analysis:

It involves the seven steps:-


1. From a project team appoints a project leader.
2. Prepare system flow chart.
3. Enumerate potential candidate system.
4. Describe the identity characteristics of candidate system.
5. Determine the evaluate performance and cost effectiveness
of each candidate system.
6. Weigh system performance and cost data.
7. Select the best candidate system.

SYSTEM ANALYSIS

Before we start studying the system we are to know with the term system.
What is system? The term system is derived from Greek word system a,
which means an organized relationship among functioning units or
components. A system exits because it is designed to achieve one or more
objectives. The term system refers to an orderly grouping of
interdependent components linked together according to plan to achieve a
specific objective the idea of system become more practical and necessary
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

in conceptualizing the interrelationship and integration of operation


especially when using computer. A study of system concept has three
basic implications: A system must be designed to achieve a predetermined
objective. Interrelationship and interdependence must exist among the
component. The objective of organization as a whole has higher priority
then the objective of its sub system in the present study system is an
integrated collection of data files. The combination of all these programs
and database made this system. The process of designing a system is not
done in one phase. It consist of many phases can be seen comprising of
four phases.
Analysis is detail study of various operations performed by the system
and their relationship within and outside the system, outside factor also
place major role in the system like govt. vendor, customer etc.
During analysis, data are collected on available files, decision points and
transactions entered by the present system.

SYSTEM DESIGN

System Design is a solution, how to approach to creation of a new system.


This important phase is composed of several steps. It provides the
understanding and procedural details for implementing the system
recommended infeasibility study. Stress in on translating performance
requirement into design specification design goes through logical physical
stages of development. Logical design reviews the present physical,
prepare input and output specification. These steps are as follow:
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

1) Problem definition.
2) Input output specification.
3) Data based designed.
4) Modular program design.
5) Preparation of source code.
6) Testing and debug

TESTING

Testing is the major quality control measure employed during software


development. Testing is the process of executing with intent of finding the
error. No peace of code is completely ready unless it has been fully tested.
NEED FOR TESTING:-Testing is the vital to the success of the
system. Testing makes a logical assumption that if all parts of the system
are correct, the goal will be successfully achieved in adequate testing and
non-testing leads to error that may not appear until month later. Finally,
testing leads to software reliability. Identifying and removing faults,
during testing can make the software more reliable.
The basic level of testing is:
1. Unit testing
2. Integration testing
3. System testing
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

4. Acceptance testing.

Database Design

Designing a database is much like designing any thing else a building, a car, or a
roadway through a city. Care must to take to design a plan. Many approaches
can be taken to explain database design. It can be debated indefinitely what to
include, what not be include, and in what order to present the material.

Before a design effort can be precede full speed ahead, the designer must first
take time to understand the business. Understanding the business involves
understanding the entities, data and rules with in an organization and then
converting these attributes of business into a business model .Then the designer
must have a solid comprehension of proposed database model. Finally, the
designer will convert the business model into a database model, using a design
methodology, whether automated or a manual process.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

SNAPSHOT:--

Home Page
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

Home Page Coding

<body background="22.jpg">
<?
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

if($id=="")
{
echo"
<table width=50% align=center><td bgcolor=#aaffaa align=center>
<h5>you must enter ID for this movie</h5></td></table>";
breack;
}
elseif($mn=="")
{
echo"
<table width=50% align=center><td bgcolor=#aaffaa align=center>
<h5>you must enter name for this movie</h5></td></table>";
breack;
}
elseif($mp=="")
{
$gog=mysql_db_query("vcd","select * from cdinfo where id='$id' or mname='$mn'");
while($goog=mysql_fetch_array($gog))
{
$googl=$goog[0];
}
if($googl!="")
{
echo"
<table width=50% align=center><td bgcolor=#aaffaa align=center>
<h5>
sorry this info was enterd before</h5></td></table>";
breack;
}
else
{
$e=mysql_db_query("vcd","insert into cdinfo values($id,'$mn','$mt','$mf',
$ss,'N/A','$dis')");
echo"
<table width=50% align=center><td bgcolor=#aaffaa align=center>
<h5>
IT'S OK MAN EVERY THING IS OK</h5></td></table>";
breack;
}
}
else
{
$gog=mysql_db_query("vcd","select * from cdinfo where id='$id' or mname='$mn'");

while($goog=mysql_fetch_array($gog))
{
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

$googl=$goog[0];
}

if($googl!="")
{
echo"
<table width=50% align=center><td bgcolor=#aaffaa align=center>
<h5>sorry this info was enterd before</h5></td></table>";
breack;
}

else
{
$r=basename($mp);
copy("$mp","ph/$r");

$e=mysql_db_query("vcd","insert into cdinfo values($id,'$mn','$mt','$mf',$ss,'<a


href=http://127.0.0.1//ph//$r>PIC</a>','$dis')");
echo"
<table width=50% align=center><td bgcolor=#aaffaa align=center>
<h5>it's ok</h5></td></table>";
breack;
}
}

DB EDITOR PAGE
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

DB EDITOR
<body background="22.jpg">
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

<body vlink=#efefef alink=#efefef link=#efefef>


<p>&nbsp</p>

<center>
<a href="editor.php"><img src="new.jpg" style="cursor:hand"
width=120></a>

<a href="editor2.php"><img src=edit.jpg style="cursor:hand"


width=120></a>

<a href="editor3.php"><img src=del.jpg style="cursor:hand"


width=120></a>
Edit
<body background="22.jpg">
<?
if($c22=="")
{
echo"<p>&nbsp</p>
<h3>you must enter name for this movie</h3>";
breack;
}
elseif($c22==$ctest)
{
$k5=mysql_db_query("vcd","update cdinfo set mname='$c22' where
id=$c11");
if($c66!="")
{
$c67=basename($c66);
copy("$c66","ph/$c67");
$k9=mysql_db_query("vcd","update cdinfo set photo='<a
href=http://127.0.0.1//ph//$c67>PIC</a>' where id=$c11");
}
else
{
$k9=mysql_db_query("vcd","update cdinfo set photo='N/A' where
id=$c11");
}
if($c44=="")
{
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

$k6=mysql_db_query("vcd","update cdinfo set mformula='N/A' where


id=$c11");
}
else
{
$k6=mysql_db_query("vcd","update cdinfo set mformula='$c44' where
id=$c11");
}
if($c55=="")
{
$k7=mysql_db_query("vcd","update cdinfo set size=0 where id=$c11");
}
else
{
$k7=mysql_db_query("vcd","update cdinfo set size=$c55 where id=$c11");
}
if($c77=="")
{
$k8=mysql_db_query("vcd","update cdinfo set discription='N/A' where
id=$c11");
}
else
{
$k8=mysql_db_query("vcd","update cdinfo set discription='$c77' where
id=$c11");
}

$k4=mysql_db_query("vcd","update cdinfo set mtype='$c33' where


id=$c11");
include("ed1.php");
breack;
}

elseif($c22!=$ctest)
{
$k1=mysql_db_query("vcd","select * from cdinfo where mname='$c22'");

while($k2=mysql_fetch_array($k1))
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

{
$k3=$k2[0];
}

if($k3!="")
{
echo"<table bgcolor=#000000><td bgcolor=#ff0000>SORRY THIS NAME
CREATED BEFOR</td></table></p>";
breack;
}
else
{
$k5=mysql_db_query("vcd","update cdinfo set mname='$c22' where
id=$c11");

$k4=mysql_db_query("vcd","update cdinfo set mtype='$c33' where


id=$c11");
if($c44=="")
{
$k6=mysql_db_query("vcd","update cdinfo set mformula='N/A' where
id=$c11");
}
else
{
$k6=mysql_db_query("vcd","update cdinfo set mformula='$c44' where
id=$c11");
}

if($c55=="")
{
$k7=mysql_db_query("vcd","update cdinfo set size=0 where id=$c11");
}
else
{
$k7=mysql_db_query("vcd","update cdinfo set size=$c55 where id=$c11");
}
if($c77=="")
{
$k8=mysql_db_query("vcd","update cdinfo set discription='N/A' where
id=$c11");
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

}
else
{
$k8=mysql_db_query("vcd","update cdinfo set discription='$c77' where
id=$c11");
}
if($c66!="")
{
$c67=basename($c66);
copy("$c66","ph/$c67");
$k9=mysql_db_query("vcd","update cdinfo set photo='<a
href=http://127.0.0.1//ph//$c67>PIC</a>' where id=$c11");
}
else
$k9=mysql_db_query("vcd","update cdinfo set photo='N/A' where
id=$c11");
}
include("ed1.php");
breack;
}
?>

<BODY background="22.jpg">
<?
if($oo=="")
{
echo
"<p>&nbsp</p>
<table width=50% align=center><td bgcolor=#aaffaa align=center>
<h5>SORRY YOU MUST ENTER ID VALUE TO DELETE
IT</h5></td></table>";
}
ELSE
{

$l1=mysql_db_query("vcd","select * from cdinfo where id=$oo");

while($l2=mysql_fetch_row($l1))
{
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

$o1=$l2[0];
}
if($o1=="")
{
echo"
<p>&nbsp</p>
<table width=50% align=center><td bgcolor=#aaffaa align=center>
<h5>SORRY THERE'S NO RECORD LIKE YOUR
ENTERES</h5></td></table>";
}
else
{
echo"
<form action=dell.php method=post>
<input type=hidden name=jep value=$oo>

<TABLE WIDTH=90% ALIGN=CENTER>


<tr>
<TD BGCOLOR=ffcc88>ID</TD>
<TD BGCOLOR=ffcc88>MOVIE NAME </TD>
<TD BGCOLOR=ffcc88>MOVIE TYPE</TD>
<TD BGCOLOR=ffcc88>FORMULA</TD>
<TD BGCOLOR=ffcc88>SIZE</TD>
<TD BGCOLOR=ffcc88>PHOTO</TD>
<TD BGCOLOR=ffcc88>DISCRIPTION</TD>
</tr>

";

$l1=mysql_db_query("vcd","select * from cdinfo where id=$oo");

while($l2=mysql_fetch_row($l1))
{
echo"<tr><td bgcolor=#ffcc00>$l2[0]</td>
<td bgcolor=#ffcc00>$l2[1]</td>
<td bgcolor=#ffcc00>$l2[2]</td>
<td bgcolor=#ffcc00>$l2[3]</td>
<td bgcolor=#ffcc00>$l2[4]</td>
<td bgcolor=#ffcc00>$l2[5]</td>
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

<td bgcolor=#ffcc00>$l2[6]</td>
";
}
echo"
</tr></table>
<center>
<input type=submit value='DELETE'>
</form></center>";
}
}
?>
<body background="22.jpg" text=#000000>
<U>WELCOME IN YOUR DATABASE EDITOR</U>
<br>
<?
if($c1=="")
{
echo"<center>
<p>&nbsp</p>
<table width=50% align=center><td bgcolor=#aaffaa
align=center>
<h5>SORRY YOU MUST ENTER TEXT TO SEARCH
FOR</h5></td></table>
</center>";
breack;
}
else
{
$c2=mysql_db_query("vcd","select * from cdinfo where id=$c1");
while($cc=mysql_fetch_array($c2))
{
$la1=$cc[0];
}

if ($la1=="")
{
echo"this record is not valid";
}
else
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

$c2=mysql_db_query("vcd","select * from cdinfo where id=$c1");

while($cc=mysql_fetch_array($c2))
{

echo"<TABLE WIDTH=90% ALIGN=CENTER>


<tr>
<TD BGCOLOR=ffcc88>ID</TD>
<TD BGCOLOR=ffcc88>MOVIE NAME </TD>
<TD BGCOLOR=ffcc88>MOVIE TYPE</TD>
<TD BGCOLOR=ffcc88>FORMULA</TD>
<TD BGCOLOR=ffcc88>SIZE</TD>
<TD BGCOLOR=ffcc88>PHOTO</TD>
<TD BGCOLOR=ffcc88>DISCRIPTION</TD>
</tr>
echo"<tr><td bgcolor=#ffcc00>$cc[0]</td>
<td bgcolor=#ffcc00>$cc[1]</td>
<td bgcolor=#ffcc00>$cc[2]</td>
<td bgcolor=#ffcc00>$cc[3]</td>
<td bgcolor=#ffcc00>$cc[4]</td>
<td bgcolor=#ffcc00>$cc[5]</td>
<td bgcolor=#ffcc00>$cc[6]</td>

echo"

<br>

<center>
<FORM ACTION=ed.PHP >
<TABLE bgcolor=#D8C283 background='mousewn1.gif'

cellspacing=0 >

<TR>
<td><input type=hidden name=c11 value=$cc[0]></TD></TR>
<tr><TD>MOVIE NAME</td><td><INPUT TYPE=TEXT

NAME=c22 value='$cc[1]'></TD></TR>
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

<INPUT TYPE=hidden NAME=ctest value='$cc[1]'>

<TR><TD>MOVIE TYPE</td>

<td><SELECT NAME=c33 value='$cc[2]'>


<OPTION>ROMANCE</OPTION>
<OPTION>ACTION</OPTION>
<OPTION>FRIGHT</OPTION>
<OPTION>COMEDY</OPTION>
</select>
</td></tr>

<tr><TD>MOVIE formula</td><td><INPUT TYPE=TEXT

NAME=c44 value='$cc[3]'></TD></TR>

<tr><TD>MOVIE SIZE</td><td><INPUT TYPE=TEXT

NAME=c55 value='$cc[4]'></TD></TR>

<TR><TD>MOVIE PICT </td><td><INPUT TYPE=FILE

NAME=c66 value='$cc[5]'></TD></TR>

<TR><TD>DISCRIPTION</td><td><TEXTAREA NAME=c77

ROWS=10 value='$cc[6]'></TEXTAREA></TD></TR>

</TABLE>
<INPUT TYPE=SUBMIT VALUE='CONFIRM REPORT'>
</FORM>
</center>

Searching Page
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

Page Search Coding


D
VIDEO CD LIBRARY ARCHIEVING PROJECT

<body background="22.jpg">

<body vlink=#efefef alink=#efefef link=#efefef>


<p>&nbsp</p>

<center>
<a href="editor.php"><img src="new.jpg" style="cursor:hand"
width=120></a>

<a href="editor2.php"><img src=edit.jpg style="cursor:hand"


width=120></a>

<a href="editor3.php"><img src=del.jpg style="cursor:hand"


width=120></a>
Edit
<body background="22.jpg">
<?
if($c22=="")
{
echo"<p>&nbsp</p>
<h3>you must enter name for this movie</h3>";
breack;
}
elseif($c22==$ctest)
{
$k5=mysql_db_query("vcd","update cdinfo set mname='$c22' where
id=$c11");
if($c66!="")
{
$c67=basename($c66);
copy("$c66","ph/$c67");
$k9=mysql_db_query("vcd","update cdinfo set photo='<a
href=http://127.0.0.1//ph//$c67>PIC</a>' where id=$c11");
}
else
{
$k9=mysql_db_query("vcd","update cdinfo set photo='N/A' where
id=$c11");
}
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

if($c44=="")
{
$k6=mysql_db_query("vcd","update cdinfo set mformula='N/A' where
id=$c11");
}
else
{
$k6=mysql_db_query("vcd","update cdinfo set mformula='$c44' where
id=$c11");
}
if($c55=="")
{
$k7=mysql_db_query("vcd","update cdinfo set size=0 where id=$c11");
}
else
{
$k7=mysql_db_query("vcd","update cdinfo set size=$c55 where id=$c11");
}
if($c77=="")
{
$k8=mysql_db_query("vcd","update cdinfo set discription='N/A' where
id=$c11");
}
else
{
$k8=mysql_db_query("vcd","update cdinfo set discription='$c77' where
id=$c11");
}

$k4=mysql_db_query("vcd","update cdinfo set mtype='$c33' where


id=$c11");
include("ed1.php");
breack;
}

elseif($c22!=$ctest)
{
$k1=mysql_db_query("vcd","select * from cdinfo where mname='$c22'");
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

while($k2=mysql_fetch_array($k1))
{
$k3=$k2[0];
}

if($k3!="")
{
echo"<table bgcolor=#000000><td bgcolor=#ff0000>SORRY THIS NAME
CREATED BEFOR</td></table></p>";
breack;
}
else
{
$k5=mysql_db_query("vcd","update cdinfo set mname='$c22' where
id=$c11");

$k4=mysql_db_query("vcd","update cdinfo set mtype='$c33' where


id=$c11");
if($c44=="")
{
$k6=mysql_db_query("vcd","update cdinfo set mformula='N/A' where
id=$c11");
}
else
{
$k6=mysql_db_query("vcd","update cdinfo set mformula='$c44' where
id=$c11");
}

if($c55=="")
{
$k7=mysql_db_query("vcd","update cdinfo set size=0 where id=$c11");
}
else
{
$k7=mysql_db_query("vcd","update cdinfo set size=$c55 where id=$c11");
}
if($c77=="")
{
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

$k8=mysql_db_query("vcd","update cdinfo set discription='N/A' where


id=$c11");
}
else
{
$k8=mysql_db_query("vcd","update cdinfo set discription='$c77' where
id=$c11");
}
if($c66!="")
{
$c67=basename($c66);
copy("$c66","ph/$c67");
$k9=mysql_db_query("vcd","update cdinfo set photo='<a
href=http://127.0.0.1//ph//$c67>PIC</a>' where id=$c11");
}
else
$k9=mysql_db_query("vcd","update cdinfo set photo='N/A' where
id=$c11");
}
include("ed1.php");
breack;
}
?>

<BODY background="22.jpg">
<?
if($oo=="")
{
echo
"<p>&nbsp</p>
<table width=50% align=center><td bgcolor=#aaffaa align=center>
<h5>SORRY YOU MUST ENTER ID VALUE TO DELETE
IT</h5></td></table>";
}
ELSE
{

$l1=mysql_db_query("vcd","select * from cdinfo where id=$oo");


D
VIDEO CD LIBRARY ARCHIEVING PROJECT

while($l2=mysql_fetch_row($l1))
{
$o1=$l2[0];
}
if($o1=="")
{
echo"
<p>&nbsp</p>
<table width=50% align=center><td bgcolor=#aaffaa align=center>
<h5>SORRY THERE'S NO RECORD LIKE YOUR
ENTERES</h5></td></table>";
}
else
{
echo"
<form action=dell.php method=post>
<input type=hidden name=jep value=$oo>

<TABLE WIDTH=90% ALIGN=CENTER>


<tr>
<TD BGCOLOR=ffcc88>ID</TD>
<TD BGCOLOR=ffcc88>MOVIE NAME </TD>
<TD BGCOLOR=ffcc88>MOVIE TYPE</TD>
<TD BGCOLOR=ffcc88>FORMULA</TD>
<TD BGCOLOR=ffcc88>SIZE</TD>
<TD BGCOLOR=ffcc88>PHOTO</TD>
<TD BGCOLOR=ffcc88>DISCRIPTION</TD>
</tr>

";

$l1=mysql_db_query("vcd","select * from cdinfo where id=$oo");

while($l2=mysql_fetch_row($l1))
{
echo"<tr><td bgcolor=#ffcc00>$l2[0]</td>
<td bgcolor=#ffcc00>$l2[1]</td>
<td bgcolor=#ffcc00>$l2[2]</td>
<td bgcolor=#ffcc00>$l2[3]</td>
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

<td bgcolor=#ffcc00>$l2[4]</td>
<td bgcolor=#ffcc00>$l2[5]</td>
<td bgcolor=#ffcc00>$l2[6]</td>
";
}
echo"
</tr></table>
<center>
<input type=submit value='DELETE'>
</form></center>";
}
}
?>
<body background="22.jpg" text=#000000>
<U>WELCOME IN YOUR DATABASE EDITOR</U>
<br>
<?
if($c1=="")
{
echo"<center>
<p>&nbsp</p>
<table width=50% align=center><td bgcolor=#aaffaa
align=center>
<h5>SORRY YOU MUST ENTER TEXT TO SEARCH
FOR</h5></td></table>
</center>";
breack;
}
else
{
$c2=mysql_db_query("vcd","select * from cdinfo where id=$c1");
while($cc=mysql_fetch_array($c2))
{
$la1=$cc[0];
}

if ($la1=="")
{
echo"this record is not valid";
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

}
else
{

$c2=mysql_db_query("vcd","select * from cdinfo where id=$c1");

while($cc=mysql_fetch_array($c2))
{

echo"<TABLE WIDTH=90% ALIGN=CENTER>


<tr>
<TD BGCOLOR=ffcc88>ID</TD>
<TD BGCOLOR=ffcc88>MOVIE NAME </TD>
<TD BGCOLOR=ffcc88>MOVIE TYPE</TD>
<TD BGCOLOR=ffcc88>FORMULA</TD>
<TD BGCOLOR=ffcc88>SIZE</TD>
<TD BGCOLOR=ffcc88>PHOTO</TD>
<TD BGCOLOR=ffcc88>DISCRIPTION</TD>
</tr>
echo"<tr><td bgcolor=#ffcc00>$cc[0]</td>
<td bgcolor=#ffcc00>$cc[1]</td>
<td bgcolor=#ffcc00>$cc[2]</td>
<td bgcolor=#ffcc00>$cc[3]</td>
<td bgcolor=#ffcc00>$cc[4]</td>
<td bgcolor=#ffcc00>$cc[5]</td>
<td bgcolor=#ffcc00>$cc[6]</td>

echo"

<br>

<center>
<FORM ACTION=ed.PHP >
<TABLE bgcolor=#D8C283 background='mousewn1.gif'

cellspacing=0 >

<TR>
<td><input type=hidden name=c11 value=$cc[0]></TD></TR>
<tr><TD>MOVIE NAME</td><td><INPUT TYPE=TEXT
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

NAME=c22 value='$cc[1]'></TD></TR>

<INPUT TYPE=hidden NAME=ctest value='$cc[1]'>

<TR><TD>MOVIE TYPE</td>

<td><SELECT NAME=c33 value='$cc[2]'>


<OPTION>ROMANCE</OPTION>
<OPTION>ACTION</OPTION>
<OPTION>FRIGHT</OPTION>
<OPTION>COMEDY</OPTION>
</select>
</td></tr>

<tr><TD>MOVIE formula</td><td><INPUT TYPE=TEXT

NAME=c44 value='$cc[3]'></TD></TR>

<tr><TD>MOVIE SIZE</td><td><INPUT TYPE=TEXT

NAME=c55 value='$cc[4]'></TD></TR>

<TR><TD>MOVIE PICT </td><td><INPUT TYPE=FILE

NAME=c66 value='$cc[5]'></TD></TR>

<TR><TD>DISCRIPTION</td><td><TEXTAREA NAME=c77

ROWS=10 value='$cc[6]'></TEXTAREA></TD></TR>

New Entry Page


D
VIDEO CD LIBRARY ARCHIEVING PROJECT
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

Add New VCD Coding


<body background="22.jpg">

<body vlink=#efefef alink=#efefef link=#efefef>


<p>&nbsp</p>

<center>
<a href="editor.php"><img src="new.jpg" style="cursor:hand"
width=120></a>

<a href="editor2.php"><img src=edit.jpg style="cursor:hand"


width=120></a>

<a href="editor3.php"><img src=del.jpg style="cursor:hand"


width=120></a>
Edit
<body background="22.jpg">
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

<?
if($c22=="")
{
echo"<p>&nbsp</p>
<h3>you must enter name for this movie</h3>";
breack;
}
elseif($c22==$ctest)
{
$k5=mysql_db_query("vcd","update cdinfo set mname='$c22' where
id=$c11");
if($c66!="")
{
$c67=basename($c66);
copy("$c66","ph/$c67");
$k9=mysql_db_query("vcd","update cdinfo set photo='<a
href=http://127.0.0.1//ph//$c67>PIC</a>' where id=$c11");
}
else
{
$k9=mysql_db_query("vcd","update cdinfo set photo='N/A' where
id=$c11");
}
if($c44=="")
{
$k6=mysql_db_query("vcd","update cdinfo set mformula='N/A' where
id=$c11");
}
else
{
$k6=mysql_db_query("vcd","update cdinfo set mformula='$c44' where
id=$c11");
}
if($c55=="")
{
$k7=mysql_db_query("vcd","update cdinfo set size=0 where id=$c11");
}
else
{
$k7=mysql_db_query("vcd","update cdinfo set size=$c55 where id=$c11");
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

}
if($c77=="")
{
$k8=mysql_db_query("vcd","update cdinfo set discription='N/A' where
id=$c11");
}
else
{
$k8=mysql_db_query("vcd","update cdinfo set discription='$c77' where
id=$c11");
}

$k4=mysql_db_query("vcd","update cdinfo set mtype='$c33' where


id=$c11");
include("ed1.php");
breack;
}

elseif($c22!=$ctest)
{
$k1=mysql_db_query("vcd","select * from cdinfo where mname='$c22'");

while($k2=mysql_fetch_array($k1))
{
$k3=$k2[0];
}

if($k3!="")
{
echo"<table bgcolor=#000000><td bgcolor=#ff0000>SORRY THIS NAME
CREATED BEFOR</td></table></p>";
breack;
}
else
{
$k5=mysql_db_query("vcd","update cdinfo set mname='$c22' where
id=$c11");
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

$k4=mysql_db_query("vcd","update cdinfo set mtype='$c33' where


id=$c11");
if($c44=="")
{
$k6=mysql_db_query("vcd","update cdinfo set mformula='N/A' where
id=$c11");
}
else
{
$k6=mysql_db_query("vcd","update cdinfo set mformula='$c44' where
id=$c11");
}

if($c55=="")
{
$k7=mysql_db_query("vcd","update cdinfo set size=0 where id=$c11");
}
else
{
$k7=mysql_db_query("vcd","update cdinfo set size=$c55 where id=$c11");
}
if($c77=="")
{
$k8=mysql_db_query("vcd","update cdinfo set discription='N/A' where
id=$c11");
}
else
{
$k8=mysql_db_query("vcd","update cdinfo set discription='$c77' where
id=$c11");
}
if($c66!="")
{
$c67=basename($c66);
copy("$c66","ph/$c67");
$k9=mysql_db_query("vcd","update cdinfo set photo='<a
href=http://127.0.0.1//ph//$c67>PIC</a>' where id=$c11");
}
else
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

$k9=mysql_db_query("vcd","update cdinfo set photo='N/A' where


id=$c11");
}
include("ed1.php");
breack;
}
?>

<BODY background="22.jpg">
<?
if($oo=="")
{
echo
"<p>&nbsp</p>
<table width=50% align=center><td bgcolor=#aaffaa align=center>
<h5>SORRY YOU MUST ENTER ID VALUE TO DELETE
IT</h5></td></table>";
}
ELSE
{

$l1=mysql_db_query("vcd","select * from cdinfo where id=$oo");

while($l2=mysql_fetch_row($l1))
{
$o1=$l2[0];
}
if($o1=="")
{
echo"
<p>&nbsp</p>
<table width=50% align=center><td bgcolor=#aaffaa align=center>
<h5>SORRY THERE'S NO RECORD LIKE YOUR
ENTERES</h5></td></table>";
}
else
{
echo"
<form action=dell.php method=post>
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

<input type=hidden name=jep value=$oo>

<TABLE WIDTH=90% ALIGN=CENTER>


<tr>
<TD BGCOLOR=ffcc88>ID</TD>
<TD BGCOLOR=ffcc88>MOVIE NAME </TD>
<TD BGCOLOR=ffcc88>MOVIE TYPE</TD>
<TD BGCOLOR=ffcc88>FORMULA</TD>
<TD BGCOLOR=ffcc88>SIZE</TD>
<TD BGCOLOR=ffcc88>PHOTO</TD>
<TD BGCOLOR=ffcc88>DISCRIPTION</TD>
</tr>

";

$l1=mysql_db_query("vcd","select * from cdinfo where id=$oo");

while($l2=mysql_fetch_row($l1))
{
echo"<tr><td bgcolor=#ffcc00>$l2[0]</td>
<td bgcolor=#ffcc00>$l2[1]</td>
<td bgcolor=#ffcc00>$l2[2]</td>
<td bgcolor=#ffcc00>$l2[3]</td>
<td bgcolor=#ffcc00>$l2[4]</td>
<td bgcolor=#ffcc00>$l2[5]</td>
<td bgcolor=#ffcc00>$l2[6]</td>
";
}
echo"
</tr></table>
<center>
<input type=submit value='DELETE'>
</form></center>";
}
}
?>
<body background="22.jpg" text=#000000>
<U>WELCOME IN YOUR DATABASE EDITOR</U>
<br>
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

<?
if($c1=="")
{
echo"<center>
<p>&nbsp</p>
<table width=50% align=center><td bgcolor=#aaffaa
align=center>
<h5>SORRY YOU MUST ENTER TEXT TO SEARCH
FOR</h5></td></table>
</center>";
breack;
}
else
{
$c2=mysql_db_query("vcd","select * from cdinfo where id=$c1");
while($cc=mysql_fetch_array($c2))
{
$la1=$cc[0];
}

if ($la1=="")
{
echo"this record is not valid";
}
else
{

$c2=mysql_db_query("vcd","select * from cdinfo where id=$c1");

while($cc=mysql_fetch_array($c2))
{

echo"<TABLE WIDTH=90% ALIGN=CENTER>


<tr>
<TD BGCOLOR=ffcc88>ID</TD>
<TD BGCOLOR=ffcc88>MOVIE NAME </TD>
<TD BGCOLOR=ffcc88>MOVIE TYPE</TD>
<TD BGCOLOR=ffcc88>FORMULA</TD>
<TD BGCOLOR=ffcc88>SIZE</TD>
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

<TD BGCOLOR=ffcc88>PHOTO</TD>
<TD BGCOLOR=ffcc88>DISCRIPTION</TD>
</tr>
echo"<tr><td bgcolor=#ffcc00>$cc[0]</td>
<td bgcolor=#ffcc00>$cc[1]</td>
<td bgcolor=#ffcc00>$cc[2]</td>
<td bgcolor=#ffcc00>$cc[3]</td>
<td bgcolor=#ffcc00>$cc[4]</td>
<td bgcolor=#ffcc00>$cc[5]</td>
<td bgcolor=#ffcc00>$cc[6]</td>

echo"

<br>

<center>
<FORM ACTION=ed.PHP >
<TABLE bgcolor=#D8C283 background='mousewn1.gif'

cellspacing=0 >

<TR>
<td><input type=hidden name=c11 value=$cc[0]></TD></TR>
<tr><TD>MOVIE NAME</td><td><INPUT TYPE=TEXT

NAME=c22 value='$cc[1]'></TD></TR>

<INPUT TYPE=hidden NAME=ctest value='$cc[1]'>

<TR><TD>MOVIE TYPE</td>

<td><SELECT NAME=c33 value='$cc[2]'>


<OPTION>ROMANCE</OPTION>
<OPTION>ACTION</OPTION>
<OPTION>FRIGHT</OPTION>
<OPTION>COMEDY</OPTION>
</select>
</td></tr>

<tr><TD>MOVIE formula</td><td><INPUT TYPE=TEXT


D
VIDEO CD LIBRARY ARCHIEVING PROJECT

NAME=c44 value='$cc[3]'></TD></TR>

<tr><TD>MOVIE SIZE</td><td><INPUT TYPE=TEXT

NAME=c55 value='$cc[4]'></TD></TR>

<TR><TD>MOVIE PICT </td><td><INPUT TYPE=FILE

NAME=c66 value='$cc[5]'></TD></TR>

<TR><TD>DISCRIPTION</td><td><TEXTAREA NAME=c77

ROWS=10 value='$cc[6]'></TEXTAREA></TD></TR>

</TABLE>
<INPUT TYPE=SUBMIT VALUE='CONFIRM REPORT'>
</FORM>
</center>
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

Add page
<body background="22.jpg">
<?

if($id=="")
{
echo"
<table width=50% align=center><td bgcolor=#aaffaa
align=center>

<h5>you must enter ID for this movie</h5></td></table>";


breack;
}

elseif($mn=="")
{
echo"
<table width=50% align=center><td bgcolor=#aaffaa
align=center>
<h5>you must enter name for this movie</h5></td></table>";
breack;
}

elseif($mp=="")
{
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

$gog=mysql_db_query("vcd","select * from cdinfo where id='$id'


or mname='$mn'");

while($goog=mysql_fetch_array($gog))
{
$googl=$goog[0];
}

if($googl!="")
{
echo"
<table width=50% align=center><td bgcolor=#aaffaa
align=center>
<h5>
sorry this info was enterd before</h5></td></table>";
breack;
}

else
{
$e=mysql_db_query("vcd","insert into cdinfo
values($id,'$mn','$mt','$mf',$ss,'N/A','$dis')");
echo"
<table width=50% align=center><td bgcolor=#aaffaa
align=center>
<h5>
IT'S OK MAN EVERY THING IS OK</h5></td></table>";
breack;
}

}
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

else
{

$gog=mysql_db_query("vcd","select * from cdinfo where id='$id'


or mname='$mn'");

while($goog=mysql_fetch_array($gog))
{
$googl=$goog[0];
}

if($googl!="")
{
echo"
<table width=50% align=center><td bgcolor=#aaffaa
align=center>
<h5>sorry this info was enterd before</h5></td></table>";
breack;
}

else
{
$r=basename($mp);
copy("$mp","ph/$r");

$e=mysql_db_query("vcd","insert into cdinfo


values($id,'$mn','$mt','$mf',$ss,'<a href=http://127.0.0.1//ph//
$r>PIC</a>','$dis')");
echo"
<table width=50% align=center><td bgcolor=#aaffaa
align=center>
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

<h5>it's ok</h5></td></table>";
breack;
}

}
?>

DELETE PAGE

<body background="22.jpg">

<?

$w=mysql_db_query("vcd","delete from cdinfo where id=$jep");

echo"
<p>&nbsp</p>
<table align=center width=50%>
<td bgcolor=#ff0000 align=center>

YOUR RECORD NO: $jep DELETED</td></table>";

?>
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

MAKE NEW CD
<body background="22.jpg">

<?

if($c22=="")
{
echo"<p>&nbsp</p>
<h3>you must enter name for this movie</h3>";
breack;
}

elseif($c22==$ctest)
{

$k5=mysql_db_query("vcd","update cdinfo set mname='$c22'


where id=$c11");
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

if($c66!="")
{
$c67=basename($c66);
copy("$c66","ph/$c67");
$k9=mysql_db_query("vcd","update cdinfo set photo='<a
href=http://127.0.0.1//ph//$c67>PIC</a>' where id=$c11");
}
else
{
$k9=mysql_db_query("vcd","update cdinfo set photo='N/A' where
id=$c11");
}

if($c44=="")
{
$k6=mysql_db_query("vcd","update cdinfo set mformula='N/A'
where id=$c11");
}
else
{
$k6=mysql_db_query("vcd","update cdinfo set mformula='$c44'
where id=$c11");
}

if($c55=="")
{
$k7=mysql_db_query("vcd","update cdinfo set size=0 where
id=$c11");
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

}
else
{
$k7=mysql_db_query("vcd","update cdinfo set size=$c55 where
id=$c11");
}

if($c77=="")
{
$k8=mysql_db_query("vcd","update cdinfo set discription='N/A'
where id=$c11");
}
else
{
$k8=mysql_db_query("vcd","update cdinfo set discription='$c77'
where id=$c11");
}

$k4=mysql_db_query("vcd","update cdinfo set mtype='$c33'


where id=$c11");

include("ed1.php");
breack;

}
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

elseif($c22!=$ctest)
{

$k1=mysql_db_query("vcd","select * from cdinfo where


mname='$c22'");

while($k2=mysql_fetch_array($k1))
{
$k3=$k2[0];
}

if($k3!="")
{
echo"<table bgcolor=#000000><td bgcolor=#ff0000>SORRY
THIS NAME CREATED BEFOR</td></table></p>";
breack;
}

else
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

$k5=mysql_db_query("vcd","update cdinfo set mname='$c22'


where id=$c11");

$k4=mysql_db_query("vcd","update cdinfo set mtype='$c33'


where id=$c11");

if($c44=="")
{
$k6=mysql_db_query("vcd","update cdinfo set mformula='N/A'
where id=$c11");
}
else
{
$k6=mysql_db_query("vcd","update cdinfo set mformula='$c44'
where id=$c11");
}

if($c55=="")
{
$k7=mysql_db_query("vcd","update cdinfo set size=0 where
id=$c11");
}
else
{
$k7=mysql_db_query("vcd","update cdinfo set size=$c55 where
id=$c11");
}

if($c77=="")
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

{
$k8=mysql_db_query("vcd","update cdinfo set discription='N/A'
where id=$c11");
}
else
{
$k8=mysql_db_query("vcd","update cdinfo set discription='$c77'
where id=$c11");
}

if($c66!="")
{
$c67=basename($c66);
copy("$c66","ph/$c67");
$k9=mysql_db_query("vcd","update cdinfo set photo='<a
href=http://127.0.0.1//ph//$c67>PIC</a>' where id=$c11");
}
else
$k9=mysql_db_query("vcd","update cdinfo set photo='N/A' where
id=$c11");
}

include("ed1.php");
breack;

}
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

?>

<?

echo "<center>RESULTS AFTER EDITING PROCESS


:</center><p>";

echo"<TABLE WIDTH=90% ALIGN=CENTER>


<tr>
<TD BGCOLOR=ffcc88>ID</TD>
<TD BGCOLOR=ffcc88>MOVIE NAME </TD>
<TD BGCOLOR=ffcc88>MOVIE TYPE</TD>
<TD BGCOLOR=ffcc88>FORMULA</TD>
<TD BGCOLOR=ffcc88>SIZE</TD>
<TD BGCOLOR=ffcc88>PHOTO</TD>
<TD BGCOLOR=ffcc88>DISCRIPTION</TD>
</tr>

";

$f=mysql_list_fields("vcd","cdinfo");
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

$m=mysql_db_query("vcd","select * from cdinfo where


id=$c11");

while($row=mysql_fetch_row($m))
{
echo"<tr><td bgcolor=#ffcc00>$row[0]</td>
<td bgcolor=#ffcc00>$row[1]</td>
<td bgcolor=#ffcc00>$row[2]</td>
<td bgcolor=#ffcc00>$row[3]</td>
<td bgcolor=#ffcc00>$row[4]</td>
<td bgcolor=#ffcc00>$row[5]</td>
<td bgcolor=#ffcc00>$row[6]</td>

";

echo"</tr></table>";

?>
DATA BASE SQL CODING
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

<?php
$con=mysqli_connect("localhost","root","RAVI","vcd");
// Check connection
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

// escape variables for security


$id = mysqli_real_escape_string($con, $_POST['id']);
$mn = mysqli_real_escape_string($con, $_POST['mn']);
$mt = mysqli_real_escape_string($con, $_POST['mt']);
$mf = mysqli_real_escape_string($con, $_POST['mf']);
$ss = mysqli_real_escape_string($con, $_POST['ss']);
$diss = mysqli_real_escape_string($con, $_POST['dis']);

$sql="INSERT INTO cdinfo VALUES ('$id', '$mn', '$mt', '$mf',


'$ss', '$diss')";

if (!mysqli_query($con,$sql)) {
die('Error: ' . mysqli_error($con));
}
echo "1 record added";

mysqli_close($con);
?>

Problem Definition
Using current system customers have to find their CD by checking their
names, singers etc manually. This may sometimes makes customers unhappy
by not finding their products. Managers or working employees cannot find
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

the sales details of particular CD and thus cannot categorize then properly.
Under one store there are various types of CD sold and their managers find
difficulties to maintain the records of their vendors. It also creates
difficulties in generating reports and analyzes market situations as per
customer demands and requirements.

Motivation behind this project


To help user in finding their products easily and thus saving time. To
eliminate manual process of storing information by using the concept of
database as backend and providing graphical user interface by using Visual
basic as front end. Eliminating file keeping system and implementing the use
of data backup options to save their precious data.

Project Statement

Background – Current Process


Under current system users are not able to find their choice products by
themselves. They have to provide details to the shopkeeper of particular
video CD and after that shopkeeper provide details by checking their
catalogue whether that particular CD is available in their shop or not. It is
also very difficult to categorize the products by using the year of release,
artists, album names, price etc. For getting details of financial transactions
such as total sells of particular day, month etc its users have to use the bill
diary to calculate the overall selling of particular date and time. This
involves manual interaction which may sometimes results in an error.

Overview
This system will help their customers to find products as per their query in
less time. User can search any particular video cd using their year of release,
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

any particular song name, artist details, film name etc. Thus saving their
time and eliminating the process of searching manually.
Admin will only have the authority to add records, delete records, modify
any existing records, giving permission to any employee. Admin can
generate reports as per their requirement. Admin will also able to add vendor
details from where they purchased along with Video CD name, price of CD
and date of purchase. Admin can check the sells and purchase records by
using information stored in the database.
Working employee will have a valid user name and password. Employee
will be eligible to generate bills for the customers and receive payments.
When the employee will enter the first letter of the Video CD, then a list of
available CD will appear from where they can select the name of CD. After
selecting the name, its price with its details will appear on the screen. They
have to only enter the total number of quantity or items, then after system
will generate the total amount which is to be paid by the customer.

CONCLUSION:-

“Video CD Library Management System” software developed for a


company has been designed to reduce the time taken to handle the sales
activity and to increase the efficiency. It is designed to replace an existing
manual record system for reducing time taken for calculations and for
storing data. The system uses Visual Basic as front end and SQL server as a
backend for the database.
The system is strong to handle daily operations where the database is
cleared over certain time. This system will reduce manual work, calculations
and will also provide periodic reports at anytime.
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

BIBLIOGRAPHY

TEXT & REFERENCE BOOKS:


• PHP & MY SQL, BY VIKRAM VASWANI, TMH PUBLICATIONS
• PHP ESSENTIALS, BY JULIE C. MELONI, BPB PUBLICATIONS
• PHP 5 AND MY SQL BIBLE, BY TIM CONVERSE AND JOYCE PARK,
WILEY-DREAMTECH INDIA PUBLICATIONS
• WEB TECHNOLOGIES, BLACK BOOK, DREAMTECH PRESS
• ATKINSON, LEON. CORE PHP PROGRAMMING, NEW YORK:
PRENTICE HALL
• LEARNING PHP 5, BY DAVID SKLAR PUBLISHER O'REILLY
MEDIA
• MASTERING PHP, BY CHARLES, PUBLISHER: BPB
• EXPERT PHP AND MYSQL, WROX PROGRAMMER TO
PROGRAMMER, WROX PRESS, 2010
• PHP FOR ABSOLUTE BEGINNERS, APRESS, 2009
• SAMS TEACH YOURSELF CSS IN 24 HOURS (2ND EDITION),
SAMS PUBLISHING, 2006

WEBSITES:-

• HTTP:// WWW.PHPBUILDER.COM
• HTTP://PHP.FAQTS.COM
D
VIDEO CD LIBRARY ARCHIEVING PROJECT

You might also like