DBMS Project
DBMS Project
BACHELOR OF ENGINEERING
Submitted by
Submitted to
Prof. Misba Kausar
MISSION
CERTIFICATE
This is to certify that,
1: INTRODUCTION 5
2:LITERATURE SURVEY 6
3:METHODOLOGY 7
5:CONCUSION 25
6:REFERENCES 26
1:INTRODUCTION
In today's digital age, the convenience of online shopping has transformed
the way we procure everyday essentials. One such essential is stationery, which is
vital for students, professionals, and businesses alike. Our project aims to create a
comprehensive online Stationery Shopping Centre that caters to all stationary needs,
from basic school supplies to specialized office equipment.
This online platform will provide a seamless shopping experience, offering a
wide range of stationery products at competitive prices. Customers can browse
through categories such as writing instruments, paper products, office supplies, art
and craft materials, and more. With user-friendly interfaces and secure payment
gateways, our platform ensures a hassle-free shopping experience for all users.
Additionally, our Stationery Shopping Centre will feature a blog section with
informative articles, tips, and DIY ideas related to stationery, making it a one-stop
destination for stationery enthusiasts. Through this project, we aim to revolutionize
the way people shop for stationery, making it more convenient and accessible to
everyone.
Computer Department,
MMANTC Page 5
2:LITERATURESURVEY
A Multistage Evolutionary Algorithm for the online stationary
shopping centre Problem
Computer Department,
MMANTC Page 6
3 METHODOLOGIES
1 Market Research:
Understand the demand for stationery items online, target audience demographics,
and competitors.
Define Objectives:
Clearly outline the goals of the project, such as sales targets, customer acquisition, or
brand awareness.
Platform Selection:
Choose the right e-commerce platform that suits the project’s requirements, such as
Shopify, Magento, or WooCommerce.
Website Development:
Design and develop the online store with user-friendly navigation, attractive visuals,
and secure payment gateways.
Product Catalog:
Marketing Strategy:
Implement digital marketing tactics such as SEO, social media marketing, email
campaigns, and influencer partnerships to drive traffic and sales.
Computer Department,
MMANTC Page 7
Agile Approach:
Adopt an agile methodology for project management, allowing for flexibility
and quick adaptation to changes throughout the development process.
Customer Service:
Provide excellent customer support through various channels like live chat, email, and
phone to ensure a positive shopping experience.
Computer Department,
MMANTC Page 8
Use Case Diagram
Computer Department,
MMANTC Page 9
4 .Results And Discussion
Login view
: Login view
The login view should include fields for users to enter their credentials, such as
username/email and password. User authentication ensures that only registered users
can access the shopping center's features.
User Interface (UI): Design a form where users can input their username/email and
password.Validation: Implement validation to ensure that the required fields are filled
and that the password meets certain criteria (e.g., minimum length).Authentication:
Connect the login form to a backend system that can authenticate users. This usually
involves checking the entered credentials against a database of registered users.Session
Management: Upon successful login, create a session or token to keep the user logged
in until they log out or the session expires.Forgot Password: Optionally, include a
"Forgot Password" feature where users can reset their password if they forget it.
Security: Ensure that passwords are securely stored using hashing algorithms and that
sensitive information is transmitted over HTTPS.
Do you need guidance on any specific aspect of implementing the login view?
Computer Department,
MMANTC Page 10
cart view
Computer Department,
MMANTC Page 11
dashboard view
Computer Department,
MMANTC Page 12
. database view
Computer Department,
MMANTC Page 13
Fig product view
Computer Department,
MMANTC Page 14
APPENDIX-A (Coding)
i. Login view:
<?php
$title = "Administration section";
require_once "./template/header.php";
?>
<?php
require_once "./template/footer.php";
?
Computer Department,
MMANTC Page 15
Cart View
?php
// the shopping cart needs sessions, to start one
/*
Array of session(
cart => array (
book_isbn (get from $_POST['book_isbn']) => number of books
),
items => 0,
total_price => '0.00'
)*/
session_start();
require_once "./functions/database_functions.php";
require_once "./functions/cart_functions.php";
// book_isbn got from form post method, change this place later.
if(isset($_POST['bookisbn'])){
$book_isbn = $_POST['bookisbn'];
}
if(isset($book_isbn)){
// new iem selected if(!
isset($_SESSION['cart'])){
// $_SESSION['cart'] is associative array that bookisbn => qty
$_SESSION['cart'] = array();
$_SESSION['total_items'] = 0;
$_SESSION['total_price'] = '0.00';
}
if(!isset($_SESSION['cart'][$book_isbn])){
$_SESSION['cart'][$book_isbn] = 1;
} elseif(isset($_POST['cart'])){
$_SESSION['cart'][$book_isbn]++;
unset($_POST);
} }
// if save change button is clicked , change the qty of each bookisbn
if(isset($_POST['save_change'])){
foreach($_SESSION['cart'] as $isbn =>$qty){
if($_POST[$isbn] == '0'){
unset($_SESSION['cart']["$isbn"]);
} else {
$_SESSION['cart']["$isbn"] = $_POST["$isbn"];
} } }
// print out header here
$title = "Your shopping cart";
Computer Department,
MMANTC Page 16
require "./template/header.php";
Computer Department,
MMANTC Page 17
2 . admin verify
<?php
session_start(); if(!isset($_POST['submit']))
{
echo "Something wrong! Check
again!"; exit;
}
require_once "./functions/database_functions.php";
$conn = db_connect();
$name = trim($_POST['name']);
$pass = trim($_POST['pass']);
// get from db
$query = "SELECT name, pass from admin";
$result = mysqli_query($conn, $query);
if(!$result){
echo "Empty data " .
mysqli_error($conn); exit;
}
$row = mysqli_fetch_assoc($result);
Computer Department,
MMANTC Page 18
2. index view
<?php
session_start();
$count = 0;
// connecto database
$title = "Index";
require_once "./template/header.php";
require_once "./functions/database_functions.php";
$conn = db_connect();
$row = select4LatestBook($conn);
?>
Computer Department,
MMANTC Page 19
3. contact view
<?php
$title = "Contact";
require_once "./template/header.php";
?>
<div class="row">
<div class="col-md-3"></div>
<form class="form-horizontal">
<fieldset>
<legend>Contact</legend>
<div class="form-group">
<label for="inputName" class="col-lg-2 control-
label">Name</label>
<div class="col-lg-10">
<input type="text" class="form-control"
id="inputName" placeholder="Name">
</div>
</div>
<div class="form-group">
<div class="form-group">
<label for="textArea" class="col-lg-2 control-
label">Textarea</label>
<div class="col-lg-10">
<textarea class="form-control" rows="3"
id="textArea"></textarea>
Computer Department,
MMANTC Page 20
<span class="help-block">A longer block of help text that breaks onto a new line
and may extend beyond one line.</span>
</div>
</div>
<div class="form-group">
</fieldset>
</form>
</div>
<div class="col-md-3"></div>
</div>
<?php
require_once "./template/footer.php";
Computer Department,
MMANTC Page 21
6 .check out view
<?php
// the shopping cart needs sessions, to start one
/*
Array of session(
cart => array (
book_isbn (get from $_GET['book_isbn']) => number of books
),
items => 0,
total_price => '0.00'
)
*/
session_start();
require_once "./functions/database_functions.php";
// print out header here
$title = "Checking out";
require "./template/header.php";
<tr>
<th> </th>
<th> </th>
<th><?php echo $_SESSION['total_items']; ?></th>
<th><?php echo "$" . $_SESSION['total_price']; ?></th>
</tr>
Computer Department,
MMANTC Page 22
Computer Department,
MMANTC Page 23
</table>
<form method="post" action="purchase.php" class="form-horizontal">
<?php if(isset($_SESSION['err']) && $_SESSION['err'] == 1){ ?>
<p class="text-danger">All fields have to be filled</p>
<?php } ?>
<div class="form-group">
<label for="name" class="control-label col-md-4">Name</label>
<div class="col-md-4">
<input type="text" name="name" class="col-md-4" class="form-
control">
</div>
</div>
<div class="form-group">
<label for="address" class="control-label col-md-4">Address</label>
<div class="col-md-4">
<input type="text" name="address" class="col-md-4" class="form-
control">
</div>
</div>
<div class="form-group">
<label for="city" class="control-label col-md-4">City</label>
<div class="col-md-4">
<input type="text" name="city" class="col-md-4" class="form-
control">
</div>
</div>
<div class="form-group">
<label for="zip_code" class="control-label col-md-4">Zip Code</label>
<div class="col-md-4">
<input type="text" name="zip_code" class="col-md-4"
class="form-control">
</div>
</div>
<div class="form-group">
<label for="country" class="control-label col-md-4">Country</label>
<div class="col-md-4">
<input type="text" name="country" class="col-md-4" class="form-
control">
</div>
</div>
<div class="form-group">
<input type="submit" name="submit" value="Purchase" class="btn btn-
primary">
</div>
</form>
<p class="lead">Please press Purchase to confirm your purchase, or Continue Shopping to
add or remove items.</p>
<?php
Computer Department,
MMANTC Page 24
else {
echo "<p class=\"text-warning\">Your cart is empty! Please make sure you add
some books in it!</p>";
}
if(isset($conn)){ mysqli_close($conn); }
require_once "./template/footer.php";
?>
Computer Department,
MMANTC Page 25
5: CONCLUSION
Conclusion
In conclusion, the rise of online stationery shopping centers has revolutionized the
way consumers procure stationery products. With their convenience, extensive
product selection, competitive pricing, and user-friendly interfaces, these platforms
have become integral to modern purchasing habits. Their accessibility and efficiency
cater to the needs of both individual consumers and businesses, making them a
cornerstone of the stationery retail industry. As technology continues to advance,
online stationery shopping centers are poised to further dominate the market, offering
unparalleled convenience and satisfaction to customers worldwide.
Computer Department,
MMANTC Page 26
6:REFERENCES
WEB REFERENCES
https://www.php.net/manual/en/language.references.php
https://www.webreference.com https://
w.w.w.phptherightway.com https://www.w3schools.
Computer Department,
MMANTC Page 27
Computer Department,
MMANTC Page 28
Computer Department,
MMANTC Page 29