Sie sind auf Seite 1von 47

INTRODUCTION TO BOUTIQUE

This program is a menu driven program. When we click the main menu the different forms
will be enabled.
The program consists of the following modules:
Source listing
This module is suppose to identify the products by their discription.
Add products
This module is suppose to take the inputs from an input device.
Add customers
This module is capable of adding customers in the specified formats.
Update and delete products
This module will update and delete products.
Update and delete customers
This module will be able to update and delete customers
Searching
In this module the admin or emplyee can search the customer or products from the database
based on criterias
Transactions
This module will take up transactions like selling products, buying products from supplier
updating cash and updating the bills.Appropriate actions will be taken.
Report Generation
This is a client program which will request for reports.
1

FUNCTIONAL COMPONENTS OF THE PROJECT :Administrator or Staff needs to register to the application and login in order to access the
software.
There are two types of users in the system

Administrator

Customer

As soon as the user logs in to the system the home page is displayed. The home page should
be a dashboard from where the user can go to any of the other functionality available in the
site
1) Contents of Home Page
Search textbox with a go Button to search for individual items
A list of all Categories available in the system. It will also show in brackets the items
up for sale in this category
Sell an Item link
2) Functional specification for Search
The search should be a case insensitive search for items which contain the search key word.
The search results should display all the items which matched the search criteria. It will
return only those items which are up for sale currently.
3) Sell an Item
When the user clicks on Sell an item link, then a page comes up which allows the user to do
the following: Provide a title for the item and a description of the Item.
There will be Upload Image Button which the user uses to upload an image of the
item. There will be an Upload text button by which the user can upload a word
document giving the description/specification of the item.
A text box to put in the minimum price
2

A text box to provide the date.


4) Category Browsing
When the user clicks on any of the Categories in the home page, a new page should open up
which shows all the items up for sale in the Category.
5) Buy an Item (Item Home page)
The Item home page can be reached either by clicking on the search results or by clicking on
an Item while doing Category browsing.
The Item home page contains the following: The title of the Item
The Description of the Item
Uploaded images for the item(if any)
Uploaded documents for the item(if any)
The name of the Seller (This will be a link which opens up a new page which gives
the rating of the seller)
The minimum price (if any)
The current price.
6) Edit an Item
The sellers should be able to edit the item. The seller should be able to do the following:1) Customer Data
2) Upload a new Image
3) Upload a document
4) Change Price

PROJECT REVIEW

The web site or web portal is developed to manage the boutique system named as
Boutique. Boutique is placed in Moga, Punjab (India). It provides the rich gallery of new
designs. A user can get the information of the latest designs of suits etc. especially for ladies.
With this portal, a user can book for the home delivery, in the domestic areas like Ludhiana
and Moga.
The Boutique is establishing in 2005 and is very popular in Moga and near areas in
Punjab. The head of the boutique is Miss. Ramandeep Kaur in this boutique five workers are
working with this boutique.
CHARACTERISTICS
1. Rich gallery of new designs is available for the customers.
2. A customer / user can check and verify his/ her measurement for stitching and can
contact for any modification.
3. Unauthorized users cannot access any option until he/she doesnt go through
registration process.
4. With map facility, boutique location can be easily found.

MINIMUM HARDWARE/SOFTWARE REQUIREMENT


SPECIFICATIONS:
4

The following are the requirements to use this site:


Server Side Software:
Operating System:

Linux, Windows 2000

Database:

MYSQL

Server Script

PHP

Flash player

Shockwave, macromedia.

Server Side - Hardware:


Processor

AMD or Intel 1.6

RAM

512 MB or above

HDD

80 GB or Above

Display

CRT,LCD or LED

Client Side - Hardware:


Processor

AMD or Celeron

RAM

64MB or above

HDD

10 GB or Above

Display

CRT,LCD or LED

Client Side - Software:


Operating Sys

Windows 9x, xp,vista, 7

Web Browser

IE 5.0 ,Google Chrome17.0 ,Opera1.5

INTRODUCTION TO HTML
HTML (Hyper Text Markup Language) documents are written in plain text (ASCII)
with special markup codes embedded right in the text. This means HTML files contain
nothing but printable characters and HTML markup codes. This is unlike a Word file which
can contain special characters for formatting functions.
What distinguishes an HTML file from any other plain - text file is the presence of
markup codes. Markup codes are typed into a document and control the formatting and
layout of your finished document. The markup codes that are typed into a document are
enclosed within these angle brackets: "< >". The angle brackets and the markup codes
together constitute a tag. When your are talking about an HTML document you refer to it as a
"source" document. Here is an example of the "source" of a simple HTML document:
<HTML>
<HEAD>
<TITLE>Simple HTML document</TITLE>
</HEAD>
<BODY>
This is a very simple html document.
</BODY>
</HTML>
Every Web page that you see on the World Wide Web is an HTML document. The Web pages
you see don't look like the source displayed above. The reason for this is because the source
is viewed through a Web Browser.
BASIC TAGS USED
CREATING A SIMPLE HTML DOCUMENT
You will create your HTML document using the text editor Notepad. In addition,
make sure you still have two Internet Explorer windows open. The window displaying the
tutorial should take up half of the screen and the experimental window should be resized to
6

take up only a half of the other part of the screen (that is one quarter of the whole screen).
The tutorial is very easy to follow.
Find and open Notepad. Position the Notepad window in the remaining quarter of
open screen. You should now have three windows displayed on your screen. Before you start
you need to know what HTML tags are HTML Tags Required in all HTML Documents.
There are some basic HTML tags that must appear in all HTML documents. They are:
The <HTML> and </HTML> Tags
Every HTML document must begin with the <HTML> tag. This tag is declaring the
document an HTML document. The <HTML> tag must be paired with its closing tag </HTML>, which will be the last tag in the document.
The <HEAD> and </HEAD> Tags.
An HTML document is divided into two parts, the head and body. Web browsers need to
distinguish the different parts of the document and these tags will inform the browser.
Generally, the <HEAD> and its closing tag </HEAD> will contain the title of your HTML
document.
The <BODY> and </BODY> Tags.
The <BODY> tag and it's closing tag </BODY> will contain the majority of your HTML
document.
The <TITLE> and </TITLE> Tags.
The Web browser always displays a title for each document it encounters. The title displayed
is taken from the content of the <TITLE> tag and its closing tag </TITLE>. The <TITLE>
and </TITLE>. always appears within the <HEAD> and </HEAD> tags.
<HTML>
<HEAD>
7

<TITLE>Simple HTML document</TITLE>


</HEAD>
<BODY>
This is a very simple html document.
</BODY>
</HTML>
Using the HTML document source above as a template, create your own HTML document.
Change the title of the document to "My Creation" and the body of the document to "This
HTML document is a work of art". When you are done typing your document and save it.
You are now ready to view your creation through Internet Explorer.
Choose Open File or Open from the File menu. Find your HTML file, highlight it,
and click on Open. Your HTML document should be displayed in the Internet.
Congratulations! You have just created your first HTML document.
2.4 PHP Preprocessor Hypertext
PHP is a server-side scripting language.
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


8

What is a PHP File?

PHP files can contain text, HTML tags and scripts

PHP files are returned to the browser as plain HTML

PHP files have a file extension of ".php", ".php3", or ".phtml


Derrire EasyPHP se cache diffrentes applications vous permettant de dployer un site
dynamique bas sur PHP et MySQL. EasyPHP regroupe en un seul programme le serveur
Apache, le langage PHP version 5, une base de donnes MYSQL ainsi que divers outils,
dont un programme d'administration de bases de donnes.

Old Versions of PHP:


Version Name

Released Date

Size

PHP 5.3.18

18 October, 2012 (1 week ago)

10.81 MB

PHP 5.4.8

18 October, 2012 (1 week ago)

13.33 MB

PHP 5.3.17

13 September, 2012 (1 month ago)

10.8 MB

PHP 5.4.7

13 September, 2012 (1 month ago)

10.53 MB

PHP 5.4.6

17 August, 2012 (2 months ago)

13.32 MB

PHP 5.4.3

08 May, 2012 (6 months ago)

10.63 MB

PHP 5.4.2

03 May, 2012 (6 months ago)

10.92 MB

PHP 5.4.1

26 April, 2012 (6 months ago)

10.63 MB

PHP 5.4.0

01 March, 2012 (8 months ago)

10.91 MB

PHP 5.3.10

02 February, 2012 (9 months ago)

14.68 MB

PHP 5.3.9

10 January, 2012 (10 months ago)

11.16 MB

PHP 5.3.6

17 March, 2011 (2 years ago)

10.44 MB

PHP 5.3.5

06 January, 2011 (2 years ago)

10.31 MB

PHP 5.2.17

06 January, 2011 (2 years ago)

8.67 MB

Version Name

Released Date

Size

PHP 5.3.3

22 July, 2010 (2 years ago)

10.17 MB

PHP 5.2.14
EasyPHP 5.3.9

EasyPHP 5.3.9 is a complete software package allowing you to use all the power and the
flexibility that dynamic languages like PHP offer, as well as the efficient use of databases.
Package includes an Apache server, a MySQL database, a full PHP execution, as well as easy
development tools for your web site or your applications
2.6 APACHE
The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP
server for modern operating systems including UNIX and Windows NT. The goal of this

10

project is to provide a secure, efficient and extensible server that provides HTTP services in
sync with the current HTTP standards.
The Apache HTTP Server Project is a collaborative software development effort aimed at
creating a robust, commercial-grade, featureful, and freely-available source code
implementation of an HTTP (Web) server. The project is jointly managed by a group of
volunteers located around the world, using the Internet and the Web to communicate, plan,
and develop the server and its related documentation. This project is part of the Apache
Software Foundation. In addition, hundreds of users have contributed ideas, code, and
documentation to the project. This file is intended to briefly describe the history of the
Apache HTTP Server and recognize the many contributors.
CSS

CSS stands for Cascading Style Sheets

Styles define how to display HTML elements

Styles were added to HTML 4.0 to solve a problem

External Style Sheets can save a lot of work

External Style Sheets are stored in CSS files

CSS Syntax
A CSS rule has two main parts: a selector, and one or more declarations:

11

The selector is normally the HTML element you want to style.


Each declaration consists of a property and a value.
The property is the style attribute you want to change. Each property has a value.
body
{
background-color:#d0e4fe;
}
h1
{color:orange;}
MYSQL
MySQL is a database.The data in MySQL is stored in database objects called tables.A table is
a collection of related data entries and it consists of columns and rows.Databases are useful
when storing information categorically. MySQL is the most popular open-source database
system.
MySQL is a fast, easy-to-use RDBMS used being used for many small and big businesses.
MySQL is developed, marketed, and supported by MySQL AB, which is a Swedish company.
MySQL is becoming so popular because of many good reasons.

MySQL is released under an open-source license. So you have nothing to pay to use
it.

MySQL is a very powerful program in its own right. It handles a large subset of the
functionality of the most expensive and powerful database packages.

MySQL uses a standard form of the well-known SQL data language.

MySQL works on many operating systems and with many languages including PHP,
PERL, C, C++, JAVA etc.
12

MySQL works very quickly and works well even with large data sets.

MySQL is very friendly to PHP, the most appreciated language for web development.

MySQL supports large databases, up to 50 million rows or more in a table. The


default file size limit for a table is 4GB, but you can increase this (if your operating
system can handle it) to a theoretical limit of 8 million terabytes (TB).

MySQL is customizable. The open source GPL license allows programmers to


modify the MySQL software to fit their own specific environments.

PROJECT WORK
SOFTWARE DEVELOPMENT METHODOLOGY
A software life cycle is the series of identifiable stages that a software product undergoes
during its lifetime .A software lifecycle model is a descriptive and diagrammatic
representation of the software life cycle .A life cycle model represents all the activities
required to make a software product transit through its lifecycle phases .It also captures the
order in which these activities are to be taken .

ITERATIVE WATERFALL MODEL:-

13

DATABASE STRUCTUREThe database has two tables:


The database named as tailor
1.register1 table

2.records table
14

E.R DIAGRAMS:

password

DOB

Username

Email
Secret code
Code

Username/passwo
rd

15

Cname

City

Length

ghera

Muri
Customer
Information

Shoulder

Chak

Bealt

Gala

16

Hip

CODING
Login page:

Coding:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<frameset rows="30%,70%,20%">
<frame src="banner.html" scrolling="no" bordercolor="#00FF66" >
</frame>
<frameset cols="20%,*,25%" >

<frame src="links.html" style="background-color:#6699CC" scrolling="no"></frame>

<frame src="flash.html" scrolling="no" ></frame>


<frame src="sublogin.html" scrolling="no" name="lg" ></frame>
</frameset>
<frame src="bot.html" scrolling="no" style="background-image:url(gd.jpg)" /></frame>
</frameset><noframes></noframes>
</html>
<?php
$con = mysql_connect("localhost","root","");
17

if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("tailor", $con);
//$res=mysql_query($sql,$con);
//print_r(mysql_fetch_row($res));
$res=mysql_query("select * from register where username='$_POST[usr]'and
password='$_POST[psd]'");
if(!$res)
{
echo"not executed query";
}
if(mysql_num_rows($res)<1)
{
echo "wrong username or password";
}
while($row=mysql_fetch_array($res))
{
if($row['username']==$_POST["usr"] && $row['password']==$_POST["psd"] &&
$row['username']=="admin")
{
echo "<a href='frame.html' target='as'>Admin Panel</a><br><br>";
echo "<a href='sublogin.html' >Back</a>";
}
if($row['username']==$_POST["usr"] && $row['password']==$_POST["psd"] &&
$row['username']!="admin")
{

18

echo"<a href='frame1.html' target='as'>User panel</a><br><br>";


echo "<a href='sublogin.html' >Back</a>";
}
}
mysql_close($con);
?>

19

User panel page:


Coding:
<html>
<body background="gd.jpg">
<?php
if (!isset($_POST['s1']))
{
$_POST['s1'] = "undefine";
}
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("tailor", $con);
$sql="select * from records";
$res=mysql_query($sql);
echo"<table bgcolor='red' border=3 b
><tr><th>cname</th><th>city</th><th>length</th><th>ghera</th><th>chak</th><th>hip</
th><th>shouldar</th><th>gala</th><th>bealt</th><th>muri</th></tr>";
while($row=mysql_fetch_array($res))
{
echo"<tr><td>".$row['cname']."</td><td>".$row['city']."</td><td>".
$row['length']."</td><td>".$row['ghera']."</td><td>".$row['chak']."</td><td>".
$row['hip']."</td><td>".$row['shouldar']."</td><td>".$row['gala']."</td><td>".
$row['bealt']."</td><td>".$row['muri']."</td></tr>";
}
mysql_close($con);
?>
20

Admin panel page:


Add new Record:
Coding:
<html>
<body background="gd.jpg">
<center>
<form method="post" action="tnew.php">
<table border="0">
<tr><td>Custmor name</td>
<td><input type="text" name="t0"></td></tr>
<tr><td>city</td>
<td><select name="city">
<option value="moga">moga</option>
<option value="ludhiana">ludhiana</option></select>
</td></tr>
<tr><td>Length</td>
<td><input type="text" name="t1"></td></tr>

<tr><td>Ghera</td>
<td><input type="text" name="t2"></td></tr>
<tr><td>chak</td>
<td><input type="text" name="t3"></td></tr>
<tr><td>Hip</td>
<td><input type="text" name="t4"></td></tr>
<tr><td>shouldar</td>
<td><input type="text" name="t5"></td></tr>
<tr><td>Gala</td>
21

<td><input type="text" name="t6"></td></tr>


<tr><td>Bealt</td>
<td><input type="text" name="t7"></td></tr>
<tr><td>muri</td>
<td><input type="text" name="t8"></td></tr>
</table><br><br>
<input type="submit" value="add new">
</form>
</body>
</html>
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("tailor", $con);

mysql_query("INSERT INTO records


VALUES ('$_POST[t0]', '$_POST[city]',
'$_POST[t1]','$_POST[t2]','$_POST[t3]','$_POST[t4]','$_POST[t5]','$_POST[t6]','$_POST[t
7]','$_POST[t8]')");
echo "new record inserted";
mysql_close($con);
?>

22

Delete Record:
Coding:
<html>
<body background="gd.jpg">
</html>
<?php
if (!isset($_POST['s1']))
{
//If not isset -> set with dumy value
$_POST['s1'] = "undefine";
}
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("tailor", $con);
$sql="select * from records";
$res=mysql_query($sql);
echo "<form method=post action=del.php>";
echo "<select name=s1>";
while($row=mysql_fetch_array($res))
{
echo "<option value=$row[cname]>$row[cname]</option>";
}
echo "</select>";
23

echo "<input type=submit value=delete>";


if($_POST["s1"])
{
$sql="delete from records where cname='$_POST[s1]'";
$res=mysql_query($sql);
}
mysql_close($con);
?>

24

View record:
Coding:
<body background="gd.jpg">
<?php
if (!isset($_POST['s1']))
{
//If not isset -> set with dumy value
$_POST['s1'] = "undefine";
}
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("tailor", $con);
$sql="select * from records";
$res=mysql_query($sql);
echo "<form method=post action=view.php>";
echo "<select name=s1>";
echo"<br><br><br>";
while($row=mysql_fetch_array($res))
{
echo "<option value=$row[cname]>$row[cname]</option>";

}
echo"<table bgcolor='red' border=3 b
><tr><th>cname</th><th>city</th><th>length</th><th>ghera</th><th>chak</th><th>hip</
th><th>shouldar</th><th>gala</th><th>bealt</th><th>muri</th></tr>";
25

echo "</select>";
echo "<br><br><input type=submit value=select><br><br><br>";
if($_POST["s1"])
{
$sql="select * from records where cname='$_POST[s1]'";
$res=mysql_query($sql);
while($row=mysql_fetch_array($res))
{
echo"<tr><td>".$row['cname']."</td><td>".$row['city']."</td><td>".
$row['length']."</td><td>".$row['ghera']."</td><td>".$row['chak']."</td><td>".
$row['hip']."</td><td>".$row['shouldar']."</td><td>".$row['gala']."</td><td>".
$row['bealt']."</td><td>".$row['muri']."</td></tr>";
}
}
mysql_close($con);
?>

26

Update Record:
Coding:
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("tailor", $con);

$sql="update records set


length='$_POST[t3]',ghera='$_POST[t4]',chak='$_POST[t5]',hip='$_POST[t6]',shouldar='$_
POST[t7]',gala='$_POST[t8]',bealt='$_POST[t9]',muri='$_POST[t10]' where
cname='$_POST[t1]'";

$res1= mysql_query($sql);
if(!$res1)
{
echo"query not executed";
}
echo "record updated";
mysql_close($con);
?>

27

FORGET PASSWORD:
Coding:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>

<body id="dd1" background="gd.jpg">


<center><br><br><br><br><br>
<form name="form1" method="post" action="forgetpas.php">
User Name &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="usr"><br><br>
Secret Code <input type="text" name="sc1"><br><br><br><br >
<input type="submit" value="Register">
<br><br><a href="login.html">Back</a><br><br>
<a href="JavaScript:window.close()">Close</a>
</body>
</html>
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
28

mysql_select_db("tailor", $con);
$res=mysql_query("select * from register2 where uname='$_POST[usr]' and
code='$_POST[sc1]' ");
if(!$res)
{
echo"not executed query";
}

while($row=mysql_fetch_array($res))
{

if($row['uname']==$_POST["usr"] && $row['code']==$_POST["sc1"] )


{
echo"your password".$row['upassword']."<br>";
}
}
mysql_close($con);
?>

29

REGISTRATION FORM:
CODING:
<html>
<body id="as1" background="gd.jpg">
<form method="post"action="reg.php">
<table border="0"align="center">
<tr><td>Username</td>
<td><input type="text" name="usr"></td><br></tr>
<tr><td>Password</td>
<td><input type="password" name="psd"></td><br></tr>

<tr><td>DateofBirth</td>
<td>
<select name="day" class="contTxt">
<option value="0">Day</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
30

<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
</select>
<select name="month" class="contTxt">
<option value="0">Month</option>
<option value="1">Jan</option>
<option value="2">Feb</option>
<option value="3">Mar</option>
<option value="4">Apr</option>
31

<option value="5">May</option>
<option value="6">Jun</option>
<option value="7">Jul</option>
<option value="8">Aug</option>
<option value="9">Sep</option>
<option value="10">Oct</option>
<option value="11">Nov</option>
<option value="12">Dec</option>
</select>
<select name="year" class="borderB">
<option value="" selected>Year</option>
<option value="1993">1993</option>
<option value="1992">1992</option>
<option value="1991">1991</option>
<option value="1990">1990</option>
<option value="1989">1989</option>
<option value="1988">1988</option>
<option value="1987">1987</option>
<option value="1986">1986</option>
<option value="1985">1985</option>
<option value="1984">1984</option>
<option value="1983">1983</option>
<option value="1982">1982</option>
<option value="1981">1981</option>
</select>
</td><br></tr>
<tr><td>EmailId</td>
32

<td><input type="text" name="eml">


</td><br></tr>
<tr><td>Secret code</td><td><input type="text" name="sc">
</table><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" value="Register">
</form>
<br>
<br><a href="login.html">Back</a>
<br><br>
<a href="JavaScript:window.close()">Close</a>
</body>
</html>
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
if ($_POST['usr']==="admin")
{
echo"u have no prmession<br>";
33

echo"<a href='login.html'>Back</a>";
exit();
}
mysql_select_db("tailor", $con);
mysql_query("INSERT INTO register1
VALUES ('$_POST[usr]', '$_POST[psd]','$_POST[year]-$_POST[month]$_POST[day]','$_POST[eml]','$_POST[sc]')");
echo "new record inserted<br><br>";
echo"<a href='login.html'>Back</a>";
mysql_close($con);
?>

34

CHANGE PASSWORD:
CODING:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body id="dd" background="gd.jpg">
<center><br><br><br><br><br>
<form name="form1" method="post" action="cngpas.php">
User Name &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="usr"><br><br>
Curent Pasword <input type="text" name="pas1"><br><br>
New Pasword <input type="text" name="pas2"><br><br>
<input type="submit" value="Register">
<br><br><a href="login.html">Back</a><br><br>
<a href="JavaScript:window.close()">Close</a>
</body>
</html>
<?php
$con = mysql_connect("localhost","root","");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("tailor", $con);

35

$res=mysql_query("select * from register1 where uname='$_POST[usr]'and


upassword='$_POST[pas1]'");
if(!$res)
{
echo"not executed query";
}
while($row=mysql_fetch_array($res))
{
if($row['uname']==$_POST["usr"] && $row['upassword']==$_POST["pas1"] )
{
$res1=mysql_query("update register set upassword='$_POST[pas2]' where
uname='$_POST[usr]'and upassword='$_POST[pas1]'");
echo"update Record";
}
}
mysql_close($con);
?>

36

RESULT AND DISCUSSION


SCREENSHOTS

37

CHANGE PASSWORD SCREEN

38

ADD RECORD SCREEN

39

DELETE RECORD SCREEN

40

VIEW RECORD SCREEN

41

UPDATE RECORD SCREEN

42

CHANGE PASSWORD SCREEN

43

REGISTRATION FORM SCREEN

44

CONTACT US FORM SCREEN

45

FUTURE SCOPE

Boutique, web portal

have fully equipped with all the relevant features. With the

passage of time, it can be enhanced with regular updations, search facility, Blogs, RSS,
tracking Facility to the customers.

46

REFERENCE
1. HTML BLACKBOOK by Steven Holzner
2. The Complete Reference SQL Second Edition
3. PHP 5 Wrox Press.

47

Das könnte Ihnen auch gefallen