Académique Documents
Professionnel Documents
Culture Documents
Convenience
The look and feel of the project must be simple. To achieve this facility, we have
designed our project in such a way that user feels himself /herself convenient while
dealing with it.
Security
Security must be implemented in every project so that data can be protected from
unauthorized access. In our project, oneuser cant see or access the data of any other
user. He/ she can only see his /her data & even cant modify his data without
administrators permission.
1.2 Literature Review
SECOND HAND SALE AND PURCAHSE OF PRODUCTS
olx Is online classifieds marketplace for used goods such as bike, cars items,
motorcycles, mobile phones, property and much more. It is accessible through
the internet and through native apps on smartphones.
CHAPTER 2
THEORETICAL STUDY
1.4 PROJECT TOOLS, PLATFORMS AND LANGUAGES USED
Front End
PHP is used as front-end for the Jobs application. The PHP is used for server side
processing on the web server. PHP is a set of components that provide developers
with a framework to implement complex functionality. PHP provides state services
that can be utilized to manage session variables across multiple Web servers in a
server form. The programming language used in development of project is php.
Back End
MySQL is one of the leading database management systems available on the market
today. In this data is stored in the form of tables which can be created and
manipulated by using various commands. The database itself has been redesigned to
automatically perform many tuning functions, leaving you free to focus on most
important tasks.
About Us
Home Page
User
Registration
Login
Contact Us
Site Map
Figure No2.1 :dfd
Post free
Ad
User
Login
Buy a product
Question
Security
User Forget
Password
Not valid
Change
3
Password
2.2.1. Register
Field
Type
Key
Id
Name
Password
Email
Security
Answer
I_am
Int(10)
varchar(10)
varchar(12)
varchar(30)
varchar(30)
varchar(30)
Varchar(30)
Primary
----------Unique
----------------
Field
Id
Type
Key
Int
Primary
Em
varchar(33)
Unique
ail
Make
Varchar(50)
------
Model
Varchar(20)
------
Year
Varchar(20)
------
Mileage
Varchar(50)
------
Adtitle
Varchar(20)
-------
Address
Varchar(20)
-------
Price
Varchar(20)
-------
Photo
Varchar(100)
-------
Description
Varchar(100)
-------
Phoneno
Varchar(20)
-------
2.2.2 Bike
2.2.3 Car
Field
Id
Type
Key
Int
Primary
Em
varchar(33)
Unique
ail
Make
varchar(50)
------
Model
Varchar(20)
------
Year
Varchar(20)
------
Mileage
Varchar(50)
------
Adtitle
Varchar(20)
-------
Address
Varchar(20)
-------
Price
Varchar(20)
-------
Photo
Varchar(100)
-------
Description
Varchar(100)
-------
Phoneno
Varchar(20)
-------
Field
Id
Type
Key
Int
Primary
Em
varchar(33)
Unique
ail
Make
varchar(20)
------
Model
Varchar(20)
------
Adtitle
Varchar(20)
-------
Address
Varchar(20)
-------
Price
Varchar(20)
-------
Photo
Varchar(100)
-------
Description
Varchar(100)
-------
Phoneno
Varchar(20)
-------
2.2.4. Mobile
2.2.5. House
Field
Id
Type
Key
Int
Primary
Em
varchar(33)
Unique
ail
Bathroom
Bedroom
varchar(20)
Varchar(20)
-----------
Squaremeters
Varchar(50)
------
Adtitle
Varchar(20)
-------
Address
Varchar(20)
-------
Price
Varchar(20)
-------
Photo
Varchar(100)
-------
Description
Varchar(100)
-------
Phoneno
Varchar(20)
-------
Field
Id
Type
Key
varchar(33)
Primary
Em
varchar(33)
Unique
ail
Subject
varchar(30)
------
Name
Varchar(30)
------
Contact
Varchar30)
------
Description
Varchar(50)
------
2.2.6.Contact us
CHAPTER 3
EXPERIMANTAL STUDY
What is HTML?
HTML stands for Hyper Text Markup Language
3.1.2
HTML Element
3.1.3
3.1.5
An HTML element is everything from the start tag to the end tag
Start tagElement contentEnd tag
<p>This is a paragraph</p>
<a href="default.htm" >This is a link</a>
3.1.4
Most HTML elements can be nested (can contain other HTML elements).
HTML Headings
HTML headings are defined with the <h1> to <h6> tags.
<h1>This is a heading</h1>
<h2>This is a heading</h2>
<h3>This is a heading</h3>
Note: Use the HTML heading tags for headings only. Don't use headings to make
something BIG or bold.
3.1.6
HTML Paragraphs
HTML paragraphs are defined with the <p> tag.
<p>This is a paragraph</p>
<p>This is another paragraph</p>
3.1.8
HTML Attribute
Attribute Syntax
Attributes always come in name/value pairs like this: name="value".
Examples
border="1"
href="http://www.netmaxtech.com"
bgcolor="yellow"
Attributes Example 1:
<table> defines an HTML table. (You will learn more about HTML tables later)
<table border="1">
The border attribute defines a border type for the <table> element.
3.1.9 LISTS
HTML supports ordered, unordered and definition lists.
An unordered list is a list of items. The list items are marked with bullets
(typically small black circles).
An unordered list starts with the <ul> tag. Each list item starts with the <li>
tag.
An ordered list is also a list of items. The list items are marked with numbers.
An ordered list starts with the <ol> tag. Each list item starts with the <li> tag.
A definition list is not a list of items. This is a list of terms and explanation of
the terms.
A definition list starts with the <dl> tag. Each definition-list term starts with
the <dt> tag. Each definition-list definition starts with the <dd> tag.
3.1.10 Frames
With frames, you can display more than one HTML document in the same
browser window, and each frame is independent of the others.
The <frameset> tag defines how to divide the window into frames
10
The values of the rows/columns indicate the amount of screen area each
row/column will occupy
11
3.1.11.2 Difference between CSS and HTML:CSS is used exclusively for formatting structured content of a single web page or the entire
web site. HTML is used to structure content or website.
Tim Berners Lee invented the World Wide Web, the language HTML was only used to add
structure to text. An author could mark his text by stating "this is a headline" or "this is a
paragraph" using HTML tags such as <h1> and <p>.
As the Web gained popularity, designers started looking for possibilities to add layout to
online documents. To meet this demand, the browser producers (at that time Netscape and
Microsoft) invented new HTML tags such as for example <font> which differed from the
12
original HTML tags by defining layout - and not structure. This also led to a situation where
original structure tags such as <table> were increasingly being misused to layout pages
instead of adding structure to text. Many new layout tags such as <blink> were only
supported by one type of browser.
Cascading Style Sheet was invented to remedy this situation by providing web designers with
sophisticated layout opportunities supported by all browsers.
13
3.2
JAVASCRIPT
14
simple syntax! Almost anyone can put small "snippets" of code into their HTML
pages.
JavaScript can read and write HTML elements - A JavaScript can read and
change the content of an HTML element
The Real Name is ECMAScript. A JavaScript can read and change the content of
an HTML element
A JavaScript can be used to detect the visitor's browser, and - depending on the
browser - load another page specifically designed for that browser
JavaScript's official name is "ECMAScript". The standard is developed and maintained by the
ECMA organisation.The language was invented by Brendan Eich at Netscape (with Navigator
2.0), and has appeared in all Netscape and Microsoft browsers since 1996.The development
of ECMA-262 started in 1996, and the first edition of was adopted by the ECMA General
Assembly in June 1997.The standard was approved as an international ISO (ISO/IEC 16262)
standard in 1998.The development of the standard is still in progress.
Java Script
<html>
<body>
<h1>My First Heading</h1>
15
Variable names are case sensitive (y and Y are two different variables)
16
17
PHP support.However, if your server does not support PHP, you must install PHP.Here is a
link to a good tutorial from PHP.net on how to install PHP5:
//This is a comment
/*
This is
a comment
block
*/
?>
</body>
</html>
Variables are used for storing values, such as numbers, strings or function results, so
that they can be used many times in a script.
3.3.6 Variables in PHP
Variables are used for storing a values, like text strings, numbers or arrays.When a
variable is set it can be used over and over again in your script.All variables in PHP
start with a $ sign symbol.The correct way of setting a variable in PHP:
$var_name = value;
New PHP programmers often forget the $ sign at the beginning of the variable. In that
case it will not work.Let's try creating a variable with a string, and a variable with a
number:
<?php
$txt = "Hello World!";
$number = 16;
?>
19
A variable name can only contain alpha-numeric characters and underscores (a-z, AZ, 0-9, and _ )
A variable name should not contain spaces. If a variable name is more than one word,
it should be separated with underscore ($my_string), or with capitalization
($myString)
The concatenation operator (.) is used to put two string values together.
To concatenate two variables together, use the dot (.) operator:
<?php
$txt1="Hello World";
$txt2="1234";
echo $txt1 . " " . $txt2;
?>
20
Description
Example
Result
Addition
x=2
x+2
Subtraction
x=2
5-x
Multiplication
x=4
x*5
20
Division
15/5
5/2
3
2.5
5%2
10%8
10%2
1
2
0
++
Increment
x=5
x++
x=6
--
Decrement
x=5
x--
x=4
Example
Is The Same As
x=y
x=y
+=
x+=y
x=x+y
-=
x-=y
x=x-y
*=
x*=y
x=x*y
/=
x/=y
x=x/y
21
.=
x.=y
x=x.y
%=
x%=y
x=x%y
Description
Example
==
is equal to
!=
is not equal
>
is greater than
<
is less than
>=
<=
Example
&&
And
||
Or
x=6,y=3
(x==5 || y==5) returns false
Not
x=6,y=3
!(x==y) returns true
The if, elseif and else statements in PHP are used to perform different actions based on
different conditions
Conditional Statements
Very often when you write code, you want to perform different actions for different decisions.
You can use conditional statements in your code to do this.
if...else statement - use this statement if you want to execute a set of code when a
condition is true and another if the condition is not true
elseif statement - is used with the if...else statement to execute a set of code if one of
several condition are true
The If...Else Statement:If you want to execute some code if a condition is true and another
code if a condition is false, use the if....else statement.
Syntax
if (condition)
code to be executed if condition is true;
else
code to be executed if condition is false;
22
Example: The following example will output "Have a nice weekend!" if the current day is
Friday, otherwise it will output "Have a nice day!":
<html>
<body>
<?php
$d=date("D");
if ($d=="Fri")
echo "Have a nice weekend!";
else
echo "Have a nice day!";
?>
</body>
</html>
If more than one line should be executed if a condition is true/false, the lines should be
enclosed within curly braces
<html>
<body>
<?php
$d=date("D");
if ($d=="Fri")
{
echo "Hello!<br />";
echo "Have a nice weekend!";
echo "See you on Monday!";
}
?>
</body>
</html>
The ElseIf Statement
If you want to execute some code if one of several conditions are true use the elseif statement
Syntax
if (condition)
code to be executed if condition is true;
elseif (condition)
code to be executed if condition is true;else
23
Name the function - It should be possible to understand what the function does by its
name. The name can start with a letter or underscore (not a number)
Add a "{" - The function code starts after the opening curly brace
24
25
<body>
<?php
functionwriteMyName($fname)
{
echo $fname . " Maan.<br />";
}
echo "My name is ";
writeMyName("anu");
echo "My name is ";
writeMyName("Baby");
echo "My name is ";
writeMyName("Harry");
?>
</body></html>
The output of the code above will be:
My name is anu
My name is Baby.
My name is Harry.
3.3.13 PHP Form Handling
The most important thing to notice when dealing with HTML forms and PHP is that any form
element in an HTML page will automatically be available to your PHP scripts.Form
example:
<html>
<body>
<form action="welcome.php" method="post">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>
</body>
</html>
The example HTML page above contains two input fields and a submit button. When the user
fills in this form and click on the submit button, the form data is sent to the "welcome.php"
file.The "welcome.php" file looks like this:
<html>
26
<body>
Welcome <?php echo $_POST["name"]; ?>.<br />
You are <?php echo $_POST["age"]; ?> years old.
</body>
</html>
A sample output of the above script may be:
Welcome John.
You are 28 years old.
The PHP $_GET and $_POST variables will be explained in the next chapters.
Form Validation
User input should be validated whenever possible. Client side validation is faster, and will
reduce server load.However, any site that gets enough traffic to worry about server resources,
may also need to worry about site security. You should always use server side validation if the
form accesses a database.A good way to validate a form on the server is to post the form to
itself, instead of jumping to a different page. The user will then get the error messages on the
same page as the form. This makes it easier to discover the error.
The $_GET variable is used to collect values from a form with method="get".
The $_GET Variable
The $_GET variable is an array of variable names and values sent by the HTTP GET
method.The $_GET variable is used to collect values from a form with method="get".
Information sent from a form with the GET method is visible to everyone (it will be displayed
in the browser's address bar) and it has limits on the amount of information to send (max. 100
characters).
Example:
<form action="welcome.php" method="get">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>
27
When the user clicks the "Submit" button, the URL sent could look something like this:The
"welcome.php" file can now use the $_GET variable to catch the form data (notice that the
names of the form fields will automatically be the ID keys in the $_GET array):
Welcome <?php echo $_GET["name"]; ?>.<br />
You are <?php echo $_GET["age"]; ?> years old!
Why use $_GET?
Note: When using the $_GET variable all variable names and values are displayed in the
URL. So this method should not be used when sending passwords or other sensitive
information! However, because the variables are displayed in the URL, it is possible to
bookmark the page. This can be useful in some cases.
Note: The HTTP GET method is not suitable on large variable values; the value cannot
exceed 100 characters.
The $_REQUEST Variable
The PHP $_REQUEST variable contains the contents of both $_GET, $_POST, and
$_COOKIE.The PHP $_REQUEST variable can be used to get the result from form data sent
with both the GET and POST methods.Example:
Welcome <?php echo $_REQUEST["name"]; ?>.<br />
You are <?php echo $_REQUEST["age"]; ?> years old!
The $_POST variable is used to collect values from a form with method="post".
The $_POST Variable
The $_POST variable is an array of variable names and values sent by the HTTP POST
method.The $_POST variable is used to collect values from a form with method="post".
Information sent from a form with the POST method is invisible to others and has no limits
on the amount of information to send.
Example
<form action="welcome.php" method="post">
Enter your name: <input type="text" name="name" />
Enter your age: <input type="text" name="age" />
<input type="submit" />
</form>
When the user clicks the "Submit" button, the URL will not contain any form data, and will
look something like this:The "welcome.php" file can now use the $_POST variable to catch
28
the form data (notice that the names of the form fields will automatically be the ID keys in the
$_POST array):
Welcome <?php echo $_POST["name"]; ?>.<br />
You are <?php echo $_POST["age"]; ?> years old!
Why use $_POST?
Variables sent with HTTP POST are not shown in the URL
However, because the variables are not displayed in the URL, it is not possible to bookmark
the page.
3.3.14
3.4
PHP is compatible with almost all servers used today (Apache, IIS, etc.)
29
It is fast: The main goal of the folks who developed MySQL was speed.Thus, the
PHP combined with MySQL are cross-platform (you can develop in Windows and
serve on a Unix platform)
30
phpMyAdmin is a free and open source tool written in PHP intended to handle the
administration of MySQL with the use of a Web browser. It can perform various tasks such as
creating, modifying or deleting databases, tables, fields or rows; executing SQL statements;
managing users and permissions.
History
Tobias Ratschiller, then an IT consultant and later founder of the software company
Maguma, started to work on a PHP-based web front-end to MySQL in 1998, inspired
by MySQL-Web admin. He gave up the project (and phpAdsNew, of which he was
also the original author) in 2000 because of lack of time. By that time, phpMyAdmin
had already become one of the most popular PHP applications and MySQL
administration tools, with a large community of users and contributors. In order to
coordinate the growing number of patches, a group of three developers registered
ThephpMyAdmin Project at SourceForge.net and took over the development in 2001.
Features
Features provided by the program include:
1
Web interface
Export data to various formats: CSV, SQL, XML, PDF (via the TCPDF library),
ISO/IEC 26300 Open Document Text and Spreadsheet, Word, Excel, Latex and
others
Transforming stored data into any format using a set of predefined functions, like
displaying BLOB-data as image or download-link
Active query monitor (Processes)
31
CHAPTER - 4
RESULT ANDDISCUSSIONS
4.1 HOME PAGE
32
4.2 REGISTRATION
33
34
4.4 CONTACT US
35
36
CHAPTER - 5
CONCLUSION AND FUTURE SCOPE
CONCLUSION
Using secondhand product systems effectively within an organization ensures that
data and knowledge is safe, accurate, and accessible. With that comfort, employees
feel more apt to reduce paper and rely on the secondhand product system.
FUTURE SCOPE
37
REFRENCE
www.w3schools.com
www.wikipedia.com
www.webinfo.com
38