Professional Documents
Culture Documents
In
Of
BANGALORE UNIVERSITY
Submitted By
S PADMA PRIYA
15VFSB7038
Under the Guidance of
Mrs. APOORVA A
1
DEPARTMENT OF COMPUTER SCIENCE
CERTIFICATE
1. ___________
2. ___________
2
DECLARATION
I hereby declare that the project report entitled “Online auction system”
was prepared by me during the year 2017-2018 and was submitted to the
Bangalore University, in partial fulfillment of the requirements for the
award of the degree in bachelor of computer applications. I also declare
that this project report is original and genuine and it has not been
submitted to any other university for the award of any degree, diploma
or other similar titles or purposes.
3
ACKNOWLEDGEMENT
With immense pleasure, we take this opportunity to express our gratitude to the
beloved Principal Dr.R.Bodhisatvan for providing valuable guidance and support
during the course.
We would like to thanks Mr. Nagaraju Kilari, Head of the Department – BCA for
his unending support and encouragement during the development of this project.
We would like to acknowledge the interest and the support extended by our project
guide Mrs. Apoorva, Department of BCA, to make this project implementation
successful.
4
TABLE OF CONTENT
SL.NO CONTENTS PAGE NO.
5
CHAPTER 1
INTRODUCTION TO PROJECT
1.1 ABSTRACT
The project “Online auction project” is the website aimed at carrying out
bidding. This is like an auction house provided online where in this users
can take part from the comfort of their homes. This site also brings the
auction to the auction to the fingertips of the aspiring bidders and sellers to
a wider section of the product. In this particular website, where buyers and
sellers interact each other to exchange products to get a fair deal.
6
1.2 PROBLEM STATEMENT
A online auction system is being designed for the user, so that they can easily take
part in the bidding conducted online. The bidding takes place in a normal form way
the people interested to buying the things placed in auction are supposed to bid for
the particular product in a particular time period. The person placing the highest
bid gets the right to own the item at the end of the bid. Bid is the exact amount of
money offered on an item in auction in the bid by seller. The buyer with the
highest bid is the one who finalizes the purchase of the item with the seller of the
item. Winner is generally the person offering the highest bidding amount is called
the winner of the auction.
1. Login:
The login Module, consists of two sub modules:
User Login- In this module, user can access this webpage and can
bid for his desired product.
Admin login-In this module , the admin can login and add the
products for bidding purpose
2. Product:
7
3. Profile:
4. Feedback:
In this module, the users can send their feedback about the
website.
8
CHAPTER 2
SYSTEM ANALYSIS
2.1 SOFTWARE REQUIREMENT SPECIFICATION
9
2.3 SOFTWARE REQUIREMENT
10
2.3.2 INTRODUCTION TO CSS
Cascading Style Sheets (CSS) is a style sheet language used for
describing the presentation of a document written in a markup
language like HTML.CSS is a cornerstone technology of the World Wide
Web, alongside HTML and JavaScript.
CSS is designed to enable the separation of presentation and content,
including layout, colours, and fonts. This separation can improve
content accessibility, provide more flexibility and control in the specification
of presentation characteristics, enable multiple web pages to share
formatting by specifying the relevant CSS in a separate .css file, and
reduce complexity and repetition in the structural content.
Separation of formatting and content also makes it feasible to present the
same markup page in different styles for different rendering methods, such
as on-screen, in print, by voice (via speech-based browser or screen
reader), and on Braille-based tactile devices. CSS also has rules for
alternate formatting if the content is accessed on a mobile device.
The name cascading comes from the specified priority scheme to
determine which style rule applies if more than one rule matches a
particular element. This cascading priority scheme is predictable.
The CSS specifications are maintained by the World Wide Web
Consortium (W3C). Internet media type (MIME type) text/css is
registered for use with CSS by RFC 2318 (March 1998). The W3C
operates a free CSS validation service for CSS documents.
11
2.3.3 INTRODUCTION TO PHP
12
2.3.4 INTRODUCTION TO MYSQL
13
2.3.5 INTRODUCTION TO XAMPP
14
2.3EXISTING SYSTEM
A detailed study of the process must be made by the various techniques like
interviews, questionaries etc. The data collected by the sources must be
scrutinized to arrive to a conclusion. The conclusion is an understanding of how
the system functions. The system is called existing system. Now the existing
system is subjected to case study and problem area are identified. The designer
now functions as a problem solver and tries to sort out the difficulties that the
enterprise faces.
Security of work
Ensure data accuracy
Minimize time needed for the various processing
Greater efficiency
Better services
15
CHAPTER 3
SYSTEM DESIGN
Login Table
Sign Up Table
16
Products Table
FeedBack Table
17
User Bid
18
3.2 DATA FLOW DIAGRAM
19
3.3 FORM DESIGN
1. LOGIN FORM
2. REGISTRATION FORM
20
3. ADD PRODUCT
4. USER BID
21
5. FEEDBACK
22
CHAPTER-4
SOURCE CODE
LOGIN FORM
?php
$conn=mysqli_connect('localhost','root','db$123','signup');
if(!empty($_POST)){
$uname=$_POST['username'];
$pass=$_POST['password'];
$result = mysqli_query($conn,$sql);
if(mysqli_num_rows($result))
while($row = $result->fetch_assoc()) {
if($row["pass"]===$pass)
echo "Passed";
23
if(strtoupper($row["supervisor"])==='YES')
session_start();
$_SESSION["auth"]=true;
$_SESSION["uname"]=$row["uname"];
header( 'Location:display.php' );
else
session_start();
$_SESSION["auth"]=true;
$_SESSION["uname"]=$row["uname"];
header( 'Location:homepage.php' );
else
exit();
?>
24
<body bgcolor=blue>
<div class="loginbox">
<h1>LOGIN HERE</h1>
<p>USERNAME</p>
<p>PASSWORD</p>
<div class="lg_links">
<div class="llink">
</div>
<div class="rlink">
</div>
</div>
</form>
</body>
</html>
25
REGISTRATION FORM
<?php
$conn=mysqli_connect('localhost','root','db$123','signup')or die(mysqli_error());
if($conn)
echo"";
else
echo"not connected";
if(!empty($_POST))
$fname=$_POST['firstname'];
$lname=$_POST['lastname'];
$email=$_POST['emailid'];
$mobnum=$_POST['mobnum'];
$uname=$_POST['username'];
$pass=$_POST['password'];
$admin=$_POST['admin'];
$securityquestion=$_POST['sc'];
$securityanswer=$_POST['securityanswer'];
26
$qu="INSERT INTO signup.signup2
VALUES('$fname','$lname','$email','$mobnum','$uname','$pass', '$admin',
'$securityquestion','securityanswer')";
$q=mysqli_query($conn,$qu);
if($q)
header("Refresh:0.2; url=auction_login.php");
else
echo"unsuccessful";
exit();
?>
<body>
<div class="signupbox">
<h1>SIGN UP </h1>
<br>
<p>FIRSTNAME</p>
27
placeholder="Enter your firstname">
<p>LASTNAME</p>
<p>EMAIL ID</p>
<p>MOBILE NUMBER</p>
<p>USERNAME</p>
<p>PASSWORD</p>
<br>
<p>Admin?</p>
<option>No</option>
<option>Yes</option>
</select>
28
<br><br>
<select name="sc">
</select><br>
<br>
<p>SECURITY ANSWER</p>
</div>
</form>
</body>
29
ADD PRODUCT FORM
<?php
$conn=mysqli_connect('localhost','root','db$123','signup')or die(mysqli_error());
if($conn)
echo"";
else
echo"not connected";
if(isset($_POST['submit4']))
$image=$_POST['image'];
$username=$_POST['username'];
$productadd=$_POST['productadd'];
$description=$_POST['description'];
$price=$_POST['price'];
$date=$_POST['date'];
$sellername=$_POST['sellername'];
$sellerloc=$_POST['sellerloc'];
$sellercontact=$_POST['sellercontact'];
30
$qu="INSERT INTO productadd
VALUES('".$image."','".$username."','".$productadd."','".$description."','".$price."
','".$date."','".$sellername."','".$sellerloc."','".$sellercontact."')";
$q=mysqli_query($conn,$qu);
if($q)
header("Refresh:0.2; url=myaccount.php");
else
echo"unsuccessful";
exit();
?>
<tr>
<td><p>PRODUCT NAME:</p></td>
<td>
</td>
31
</tr>
<tr>
<td><p>DESCRIPTION:</p></td>
<td>
</td>
</tr>
<tr>
<td><p>PRICE:</p></td>
<td>
</td>
</tr>
<tr>
<td><p>SELLER NAME:</p></td>
<td>
32
</td>
</tr>
<tr>
<td><p>SELLER LOCATION:</p></td>
<td>
</td>
</tr>
<tr>
<td><p>SELLER CONTACT:</p></td>
<td>
</td>
</tr>
<tr>
33
</tr>
</table>
</div>
</form>
<?php
$conn=mysqli_connect('localhost','root','db$123','signup')or die(mysqli_error());
if($conn)
echo"";
else
echo"not connected";
if(isset($_POST['submit4']))
$image=$_POST['image'];
$username=$_POST['username'];
$productadd=$_POST['productadd'];
$description=$_POST['description'];
$price=$_POST['price'];
34
$date=$_POST['date'];
$sellername=$_POST['sellername'];
$sellerloc=$_POST['sellerloc'];
$sellercontact=$_POST['sellercontact'];
$q=mysqli_query($conn,$qu);
if($q)
header("Refresh:0.2; url=myaccount.php");
else
echo"unsuccessful";
exit();
?>
<tr>
<td><p>PRODUCT NAME:</p></td>
<td>
35
<input type="textbox" name="prodName" placeholder="Enter your product
name">
</td>
</tr>
<tr>
<td><p>DESCRIPTION:</p></td>
<td>
</td>
</tr>
<tr>
<td><p>PRICE:</p></td>
<td>
</td>
</tr>
<tr>
<td><p>SELLER NAME:</p></td>
36
<td>
</td>
</tr>
<tr>
<td><p>SELLER LOCATION:</p></td>
<td>
</td>
</tr>
<tr>
<td><p>SELLER CONTACT:</p></td>
<td>
</td>
</tr>
37
<tr>
</tr>
</table>
</div>
</form>
<?php
$conn=mysqli_connect('localhost','root','db$123','signup')or die(mysqli_error());
if($conn)
echo"";
else
echo"not connected";
if(isset($_POST['submit4']))
$image=$_POST['image'];
38
$username=$_POST['username'];
$productadd=$_POST['productadd'];
$description=$_POST['description'];
$price=$_POST['price'];
$date=$_POST['date'];
$sellername=$_POST['sellername'];
$sellerloc=$_POST['sellerloc'];
$sellercontact=$_POST['sellercontact'];
$q=mysqli_query($conn,$qu);
if($q)
header("Refresh:0.2; url=myaccount.php");
else
echo"unsuccessful";
exit();
39
?>
<tr>
<td><p>PRODUCT NAME:</p></td>
<td>
</td>
</tr>
<tr>
<td><p>DESCRIPTION:</p></td>
<td>
</td>
</tr>
<tr>
<td><p>PRICE:</p></td>
<td>
40
</td>
</tr>
<tr>
<td><p>SELLER NAME:</p></td>
<td>
</td>
</tr>
<tr>
<td><p>SELLER LOCATION:</p></td>
<td>
</td>
</tr>
<tr>
<td><p>SELLER CONTACT:</p></td>
<td>
41
<span class="error">* <?php if(!empty($sellerPhoneErr)){echo $sellerPhoneErr;}
?></span>
</td>
</tr>
<tr>
</tr>
</table>
</div>
</form>
<?php
$conn=mysqli_connect('localhost','root','db$123','signup')or die(mysqli_error());
if($conn)
echo"";
else
echo"not connected";
42
}
if(isset($_POST['submit4']))
$image=$_POST['image'];
$username=$_POST['username'];
$productadd=$_POST['productadd'];
$description=$_POST['description'];
$price=$_POST['price'];
$date=$_POST['date'];
$sellername=$_POST['sellername'];
$sellerloc=$_POST['sellerloc'];
$sellercontact=$_POST['sellercontact'];
$q=mysqli_query($conn,$qu);
if($q)
header("Refresh:0.2; url=myaccount.php");
else
43
echo"unsuccessful";
exit();
?>
<tr>
<td><p>PRODUCT NAME:</p></td>
<td>
</td>
</tr>
<tr>
<td><p>DESCRIPTION:</p></td>
<td>
</td>
</tr>
<tr>
44
<td><p>PRICE:</p></td>
<td>
</td>
</tr>
<tr>
<td><p>SELLER NAME:</p></td>
<td>
</td>
</tr>
<tr>
<td><p>SELLER LOCATION:</p></td>
<td>
</td>
</tr>
45
<tr>
<td><p>SELLER CONTACT:</p></td>
<td>
</td>
</tr>
<tr>
</tr>
</table>
</div>
</form>
MAIL FORM
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;
46
require 'PHPMailer-master\src\PHPMailer.php';
require 'PHPMailer-master\src\SMTP.php';
require 'PHPMailer-master\src\Exception.php';
$to = '';
$message = "
<html>
<head>
<title>Test email</title>
</head>
<body>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>John</td>
<td>Doe</td>
</tr>
</table>
47
</body>
</html>
";
$mail->Host = "smtp.gmail.com";
$mail->IsHTML(true);
$mail->Username = "ezhilnanda95@gmail.com";
$mail->Password = "Mphasi$123";
$mail->SetFrom("admin@aucton.com");
$mail->Body = $message;
$conn=mysqli_connect('localhost','root','db$123','signup')or die(mysqli_error());
// Check connection
48
$query="SELECT * FROM signup2 where UPPER(supervisor)='NO'";
$result = mysqli_query($conn,$query);
if(mysqli_num_rows($result)>0)
while($row = $result->fetch_assoc()) {
$to = $row["email"];
$mail->AddAddress($to);
$to = substr(ltrim(rtrim($to)),0,-1);
mysqli_close($conn);
else
echo"unsuccessful";
mysqli_close($conn);
if(!$mail->Send()) {
} else
49
?>
BID FORM
<?php
$conn=mysqli_connect('localhost','root','db$123','signup')or die(mysqli_error());
$status = 'CREATED';
$bidStartDate->setTimeZone(new DateTimeZone("Asia/Calcutta"));
$bidStartDate->setTime(0, 0);
echo $date_format1.'<br/>';
$bidEndDate->setTimeZone(new DateTimeZone("Asia/Calcutta"));
$bidEndDate->setTime(0, 0);
$bidEndDate->add(new DateInterval('PT23H59M59S'));
echo $date_format2;
$result = mysqli_query($conn,$query);
50
if(mysqli_num_rows($result)>0)
while($row = $result->fetch_assoc()) {
$conn1=mysqli_connect('localhost','root','db$123','signup')or die(mysqli_error());
$status = 'Online';
$result1 = mysqli_query($conn1,$query1);
if(!$result1)
?>
<?php
$conn=mysqli_connect('localhost','root','db$123','signup')or die(mysqli_error());
51
die("ERROR: Could not connect. " . mysqli_connect_error());
$result = mysqli_query($conn,$query);
if(mysqli_num_rows($result)>0)
while($row = $result->fetch_assoc()) {
$prodID = $row["prodID"];
$conn1=mysqli_connect('localhost','root','db$123','signup')or die(mysqli_error());
$result1 = mysqli_query($conn1,$query1);
if(mysqli_num_rows($result1)>0)
while($row1 = $result1->fetch_assoc()) {
if($row1["uname"]===$_SESSION["uname"])
<h3>Product Image</h3>
52
'.displayImage($row1["img_id"]).'
<table>
<tr>
<td><b>Product Name</b></td>
<td>'.$row1["prodName"].'</td>
</tr>
<tr>
<td><b>Product Descriptioon</b></td>
<td>'.$row1["prodDescription"].'</td>
<td>'.$row1["startPrice"].'</td>
</tr>
<tr>
<td><label>'.$row1["sbidAmount"].'</label></td>
</tr>
<tr>
<td><b>Seller Name</b></td>
<td>'.$row1["sellerName"].'</td>
</tr>
<tr>
<td><b>Winner</b></td>
53
<td><span style="color: red; font-style: italic;">Congratulations. You are the
winner.</span></td>
</table></form></div>
';
echo $html_code;
else
$sAmount = 0;
$conn5=mysqli_connect('localhost','root','db$123','signup')or die(mysqli_error());
$result5 = mysqli_query($conn5,$query5);
if(mysqli_num_rows($result5)>0)
$row5 = $result5->fetch_assoc();
//var_dump($row5);
$sAmount = $row5["bidAmount"];
54
mysqli_close($conn5);
<h3>Product Image</h3>
'.displayImage($row1["img_id"]).'
<table>
<tr>
<td><b>Product Name</b></td>
<td>'.$row1["prodName"].'</td>
</tr>
<tr>
<td><b>Product Descriptioon</b></td>
<td>'.$row1["prodDescription"].'</td>
</tr>
<tr>
<td><b>Starting Price</b></td>
<td>'.$row1["startPrice"].'</td>
</tr>
<tr>
<td><label>'.$row1["sbidAmount"].'</label></td>
</tr>
55
<tr>
<td><label>'.$sAmount.'</label></td>
</tr>
<tr>
<td><b>Seller Name</b></td>
<td>'.$row1["sellerName"].'</td>
</tr>
<tr>
<td><b>Winner</b></td>
<td>'.$row1["uname"].'</td>
</tr>
</table></form></div>
';
echo $html_code;
else
$conn4=mysqli_connect('localhost','root','db$123','signup')or die(mysqli_error());
56
if($conn4 === false){
$result4 = mysqli_query($conn4,$query4);
if(mysqli_num_rows($result4)>0)
while($row4 = $result4->fetch_assoc()) {
<h3>Product Image</h3>
'.displayImage($row4["img_id"]).'
<table>
<tr>
<td><b>Product Name</b></td>
<td>'.$row4["prodName"].'</td>
</tr>
<tr>
<td><b>Product Descriptioon</b></td>
<td>'.$row4["description"].'</td>
</tr>
57
<tr>
<td><b>Starting Price</b></td>
<td>'.$row4["price"].'</td>
</tr>
<tr>
<td><b>Seller Name</b></td>
<td>'.$row4["sellerName"].'</td>
</tr>
<tr>
<td><b>Winner</b></td>
</tr>
</table></form></div>
echo $html_code;
mysqli_close($conn1);
mysqli_close($conn);
else
58
echo '<div style="width: auto; height: auto; background-color: white; padding:
15px;">
Thank you. We did not find any items you had succeefully bid so far.
</div>';
mysqli_close($conn);
return;
function displayImage($id)
$conn2=mysqli_connect('localhost','root','db$123','signup')or die(mysqli_error());
while($row2 = mysqli_fetch_array($result2))
?>
MY ACCOUNT FORM
<?php
include('mainNav.php');
?>
59
<div class="content">
<h3>Update Profile</h3>
<table>
<?php
$conn=mysqli_connect('localhost','root','db$123','signup')or die(mysqli_error());
$result = mysqli_query($conn,$query);
if(mysqli_num_rows($result)>0)
while($row = $result->fetch_assoc()) {
while($counter=key($row))
switch ($counter) {
case 'fname':
<tr>
<td><b>First Name</b></td>
<td>'.$row[$counter].'</td>
</tr>
';
60
break;
case 'lname':
echo '
<tr>
<td><b>Last Name</b></td>
<td>'.$row[$counter].'</td>
</tr>
';
break;
case 'email':
<tr>
<td><b>Email</b></td>
<td>'.$row[$counter].'</td>
</tr>
';
break;
case 'mob':
echo '
<tr>
<td><b>Mobile</b></td>
<td>'.$row[$counter].'</td>
</tr>
61
';
break;
next($row);
mysqli_close();
?>
CHAPTER-5
Software testing is the process of executing a program or system with the intent
of finding errors. Or it involves any activity aimed at evaluating an attribute or
capability of a program and determines that it meets its required results.
Software can fail in many different ways.
62
5.2 TYPES OF TESTING USED
UNIT TESTING
Unit test comprises of a set tests performed by an individual program prior
to the integration of the unit into large system. A program unit is usually
the smallest free functioning part of the whole system. Module unit testing
should be as exhaustive as possible to ensure that each representation
handled by each module has been tested.
UNIT CASE-1
Result Successful
UNIT CASE-2
63
Name of test Sign Up/Sign In test
Result Successful
VALIDATION TESTING
CHAPTER-6
CONCLUSION
Online auction system project is a website which is developed in PHP
for helping users to sell products through online and fix rates based on
bidding procedure. This project also contains different categories. In
present fast growing technology and software world web application are
playing important role in increasing business mainly online purchase
related websites are growing fast in every field. Considering present
trend this online auction system website is developed to help users to
sell products based on live bid. The bidding process can be conducted on
a global scale.
64
FUTURE ENHANCEMENT
“Online auction system” project give option to sell and purchase a
product at online and bid different kinds of auction items. At this
time every person has shortage of time so user can sell and
purchase at online by using this website.
In future we will browse many category for bidding we create a
mobile application forbidding which is used in mobile, tablet and
another technology devices. Better customer services like online
payment facility.
65
BIBLIOGRAPHY
ONLINE RESOURCES
https://www.w3schools.com/php/default.asp
https://en.m.wikipedia.org/wiki/software
https://en.m.wikipedia.org/wiki/HTML
https://www.w3schools.com/sql/default.asp
66
67
68
69