Professional Documents
Culture Documents
CERTIFICATE
DECLARATION
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
Project Members:
Rashmi Rajak
Priyanka Pawar
Vipin Kumar Singh
D
VIDEO CD LIBRARY ARCHIEVING PROJECT
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
INTRODUCTION
TO”PROJECT”
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.
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.
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.
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.
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.
H A R D WA R E
S O F T WA R E
H ARDWARE :
S OFTWARE :
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
S OFTWARE IS AS FOLLOWS : -
INTRODUCTION TO
“PHP”
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
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
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.
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.
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
<p>
<?php
print 4 + 4;
D
VIDEO CD LIBRARY ARCHIEVING PROJECT
?>
<p>
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:
10<p>
8<p>
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.
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..
print "Hello";
?>
print "Hello";
?>
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 number_format(285266237);
PRINT Number_Format(285266237);
Print number_format(285266237);
pRiNt NUMBER_FORMAT(285266237);
Comments:-
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
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
*/
print 'Smoked Fish Soup, Duck with Pea Shoots, Shark Fin Soup ';
The following lines are inside this comment so they don't get executed.
*/
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.
print 'chicken';
print '06520';
Since the string consists of everything inside the single quotes, that's what is
printed:
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:
The \' sequence is turned into ' inside the string, so what is printed is:
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
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—
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.
-
.
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.
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.
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
• 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
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:
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.
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.
Data Manipulation:-
D
VIDEO CD LIBRARY ARCHIEVING PROJECT
Data Definition:-
Access Control:-
D
VIDEO CD LIBRARY ARCHIEVING PROJECT
Transaction Control :-
DATA DESIGNER :-
DATA DESIGNER :-
Admin
Indexes
D
VIDEO CD LIBRARY ARCHIEVING PROJECT
STRUCTURED ANALYSIS
DATA DICTIONARY
STRUCTURED ANALYSIS
DECISION TREE
D
VIDEO CD LIBRARY ARCHIEVING PROJECT
DFD SYMBOL:-
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
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
SYSTEM DESIGN
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
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
<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");
DB EDITOR PAGE
D
VIDEO CD LIBRARY ARCHIEVING PROJECT
DB EDITOR
<body background="22.jpg">
D
VIDEO CD LIBRARY ARCHIEVING PROJECT
<center>
<a href="editor.php"><img src="new.jpg" style="cursor:hand"
width=120></a>
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");
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> </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
{
while($l2=mysql_fetch_row($l1))
{
D
VIDEO CD LIBRARY ARCHIEVING PROJECT
$o1=$l2[0];
}
if($o1=="")
{
echo"
<p> </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>
";
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> </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
while($cc=mysql_fetch_array($c2))
{
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
<TR><TD>MOVIE TYPE</td>
NAME=c44 value='$cc[3]'></TD></TR>
NAME=c55 value='$cc[4]'></TD></TR>
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
<body background="22.jpg">
<center>
<a href="editor.php"><img src="new.jpg" style="cursor:hand"
width=120></a>
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");
}
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");
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
<BODY background="22.jpg">
<?
if($oo=="")
{
echo
"<p> </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
{
while($l2=mysql_fetch_row($l1))
{
$o1=$l2[0];
}
if($o1=="")
{
echo"
<p> </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>
";
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> </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
{
while($cc=mysql_fetch_array($c2))
{
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>
<TR><TD>MOVIE TYPE</td>
NAME=c44 value='$cc[3]'></TD></TR>
NAME=c55 value='$cc[4]'></TD></TR>
NAME=c66 value='$cc[5]'></TD></TR>
<TR><TD>DISCRIPTION</td><td><TEXTAREA NAME=c77
ROWS=10 value='$cc[6]'></TEXTAREA></TD></TR>
<center>
<a href="editor.php"><img src="new.jpg" style="cursor:hand"
width=120></a>
<?
if($c22=="")
{
echo"<p> </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");
}
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
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
<BODY background="22.jpg">
<?
if($oo=="")
{
echo
"<p> </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
{
while($l2=mysql_fetch_row($l1))
{
$o1=$l2[0];
}
if($o1=="")
{
echo"
<p> </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
";
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> </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
{
while($cc=mysql_fetch_array($c2))
{
<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>
<TR><TD>MOVIE TYPE</td>
NAME=c44 value='$cc[3]'></TD></TR>
NAME=c55 value='$cc[4]'></TD></TR>
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>
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
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
{
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");
<h5>it's ok</h5></td></table>";
breack;
}
}
?>
DELETE PAGE
<body background="22.jpg">
<?
echo"
<p> </p>
<table align=center width=50%>
<td bgcolor=#ff0000 align=center>
?>
D
VIDEO CD LIBRARY ARCHIEVING PROJECT
MAKE NEW CD
<body background="22.jpg">
<?
if($c22=="")
{
echo"<p> </p>
<h3>you must enter name for this movie</h3>";
breack;
}
elseif($c22==$ctest)
{
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");
}
include("ed1.php");
breack;
}
D
VIDEO CD LIBRARY ARCHIEVING PROJECT
elseif($c22!=$ctest)
{
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
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
?>
<?
";
$f=mysql_list_fields("vcd","cdinfo");
D
VIDEO CD LIBRARY ARCHIEVING PROJECT
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();
}
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.
Project Statement
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:-
BIBLIOGRAPHY
WEBSITES:-
• HTTP:// WWW.PHPBUILDER.COM
• HTTP://PHP.FAQTS.COM
D
VIDEO CD LIBRARY ARCHIEVING PROJECT