E Book webSITE PROJECT fILE
E Book webSITE PROJECT fILE
On
E-BOOK WEBSITE
This is certified that the project report entitled “E-book Website” submitted to
Department of Computer science, Uttam Institute of Technology and
Management, Agra is in partial fulfillment of the requirement for the award of
the degree of Bachelor of Computer Application (BCA) in session (2020-2023),
is done by “Tanuj Kumar” is an authentic work carried out by him under the
supervision of Mr. Aman Tyagi.
The information embodied in this major project is genuine work done by the
student and has not been submitted elsewhere whether to this university or to any
other University or to any other university / Institute for the fulfillment of the
requirement of any course of study to the best of my knowledge and belief.
(Professor)
DECLARATION
I hereby declare that this submission is our own work and that, to the best of our
knowledge and belief, it contains no material previously published or written by
another person nor material which to a substantial extent has been accepted for
the award of any other degree or diploma of the university or other institute of
higher learning, except where due acknowledgment has been made in the text.
…………………
(Signature)
Tanuj Kumar
I am highly indebted to Mr. Aman Tyagi for their guidance and constant
supervision as well as for providing necessary information regarding the project
& also for their support in completing the project. I am extremely thankful to him
for providing such a nice support and guidance, although he had busy schedule
managing the corporate affairs.
………………….
(Signature)
Tanuj Kumar
Digital books, such as e-books, story apps, picture book apps and interactive
stories, are narratives presented on touchscreens with multimedia and interactive
features. Accumulating evidence suggests that early reading of print versus digital
books is associated with different parent-child engagement patterns and
children’s outcomes. Parents’ verbal scaffolding, children’s age and congruence
between the narrative and the book’s interactive/multimedia features, are three so
far documented process variables that explain the difference between reading
print and digital books. To maximize the added value of digital books for
children, the interaction among parent, child and book characteristics need to be
studied in future research and be targeted through interventions and design-
research collaborations.
LIST OF FIGURES
Fig. No. Figure Description Page No
1.3 ER Diagram
1: Introduction 01
1.1. Introduction
1.2. Module
1.3. Objective
2: Requirement Specification 02
3: System Design 04
3.1.2. ER Diagram
4: Database Design 09
4.1. MySQL Data Tables (Database Table)
5.1. Implementation
5.2. Maintenance
6: Result 11
8: Conclusion 14
9: Bibliography 15
INTRODUCTION OF PROJECT
Module:
Admin Module:
1. Register: In this section, admin can view the new accounts, where people
can make their account for access the website.
2. Login: In this section, admin can give access to those users who can
create their account in register page and fill their correct data in login page.
3. Home: In this section, admin provide a Home (Main) page to the user
who have logged in properly.
5. Logout: There is a logout button at the top of the Home page where user
can logged out of their account and go to the login page.
User Module:
Software Specification:
1. Platform Windows
Hardware Specification:
2. Hard Disk 1 TB
3. Memory (RAM) 12 GB
Server Side:
design refers to the design of websites that are displayed on the internet. It
usually refers to the user experience aspects of website development. Web
design used to be focused on designing websites for desktop browsers; however,
since the mid-2010s, design for mobile and tablet browsers has become ever-
increasingly important.
A web designer works on the appearance, layout, and, in some cases, content of
a website. Appearance, for instance, relates to the colors, font, and images used.
Layout refers to how information is structured and categorized.
A good web design is easy to use, aesthetically pleasing, and suits the user
group and brand of the website. Many webpages are designed with a focus on
simplicity, so that no extraneous information and functionality that might
distract or confuse users appears. As the keystone of a web designer’s output is
a site that wins and fosters the trust of the target audience, removing as many
potential points of user frustration as possible is a critical consideration.
The UML use case diagram is the behavioral diagram that summarizes activities
done in a login and registration system and its user details. It depicts the
graphical representation of the login and register behavioral structure.
The UML use case diagram in software engineering shows the sample adaptive
behavior of the login and register. It encapsulates the project’s functionality by
incorporating use cases, actors, and their interactions.
Register
Login
Admin
Welcome (Main
Dashboard)
Logout
Delete User
Delete From
Database
Fig-1.1
Register
Login
User
Welcome (Main
Dashboard)
Logout
Fig1.2
ER Diagram:
An Entity Relationship (ER) Diagram is a type of flowchart that illustrates how
“entities” such as people, objects or concepts relate to each other within a
system. ER Diagrams are most often used to design or debug relational
databases in the fields of software engineering, business information systems,
education and research. Also known as ERDs or ER Models, they use a defined
set of symbols such as rectangles, diamonds, ovals and connecting lines to
depict the interconnectedness of entities, relationships and their attributes. They
mirror grammatical structure, with entities as nouns and relationships as verbs.
User_name User_pass
Pass_id
Manage Password
Pass_name
Fig-1.3
Data Flow Diagram:
DFD is the abbreviation for Data Flow Diagram. The flow of data of a system
or a process is represented by DFD. It also gives insight into the inputs and
outputs of each entity and the process itself. DFD does not have control flow
and no loops or decision rules are present. Specific operations depending on the
type of data can be explained by a flowchart.
It is a graphical tool, useful for communicating with users ,managers and other
personnel. it is useful for analyzing existing as well as proposed system.
It provides an overview of
= External Entity
= Process
= Data Store
= Data Flow
Fig-1.4
Circle: A circle (bubble) shows a process that transforms data inputs into data
outputs.
Data Flow: A curved line shows the flow of data into or out of a process or data
store.
Data Store: A set of parallel lines shows a place for the collection of data items.
A data store indicates that the data is stored which can be used at a later stage or
by the other processes in a different order. The data store can have an element or
group of elements.
Login
Management
Registration
Management
E-book Admin
Website Management
Password User
Management Management
Fig-1.5
First Level DFD:
In First-level DFD, the context diagram is decomposed into multiple
bubbles/processes. In this level, we highlight the main functions of the system
and breakdown the high-level process of 0-level DFD into subprocesses.
User
Login E-book Management
Management Website
Password Admin
Management Management
Fig-1.6
Check
Credential
s
Manage
Stories
Check
Roles of
access
Add/Delete
User’s Data
Manage
Modules
View Contact Us
Check
page
Credentials
s
View About Us
Check
page
Role Of
Access
View Welcome
Manage page
Module
So in our project, there is a simple way provided that can easily access by the
user. There is no highly understandable technology used that will not
understand by the user. All is what that Users must have a basic knowledge of
fundamental things that will make him/her easy to understand the process of the
system.
Maintenance:
Test Expected
Test Purpose Test-Condition Output Remark
ID Output
Register If user details not
Grant access Access granted Test
TC1 Username & correct, form will
to login page to login page Successful
Password be blanked
If user on welcome
Click on page Grant access Grant access Test
TC4
Logout button to login page to login page Successful
About Php:
The term PHP is an acronym for PHP: Hypertext Preprocessor. PHP is a server-
side scripting language designed specifically for web development. It is open-
source which means it is free to download and use. It is very simple to learn and
use. The files have the extension “.php”.
Rasmus Lerdorf inspired the first version of PHP and participated in the later
versions. It is an interpreted language and it does not require a compiler.
• PHP code is executed in the server.
• It can be integrated with many databases such as Oracle, Microsoft SQL
Server, MySQL, PostgreSQL, Sybase, and Informix.
• It is powerful to hold a content management system like WordPress and
can be used to control user access.
• It supports main protocols like HTTP Basic, HTTP Digest, IMAP, FTP,
and others.
• Websites like www.facebook.com and www.yahoo.com are also built on
PHP.
• One of the main reasons behind this is that PHP can be easily embedded in
HTML files and HTML codes can also be written in a PHP file.
• The thing that differentiates PHP from the client-side language like HTML
is, that PHP codes are executed on the server whereas HTML codes are
directly rendered on the browser. PHP codes are first executed on the server
and then the result is returned to the browser.
• The only information that the client or browser knows is the result returned
after executing the PHP script on the server and not the actual PHP codes
present in the PHP file. Also, PHP files can support other client-side
scripting languages like CSS and JavaScript.
CSS: CSS stands for Cascading Style Sheets and it is used to style web
documents. It is used to provide the background color and is also used for
styling. It can also be used to style the font and change its size. We can also
style many different web pages with the same specifications with the help of
CSS. CSS is also recommended by World Wide Web Consortium (W3C). It can
also be used along with HTML and JAVASCRIPT to design web pages.
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. The goal of this 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 ("httpd") was launched in 1995 and it has been the
most popular web server on the Internet since April 1996. It has celebrated its
20th birthday as a project in February 2015.
MYSQL
• MYSQL is a database server
platforms
Table Of Figures:
Home Page:
This is the home page of the website from where user can
register or login itself to enter into main window.
Registration Page:
This is the registration window where user has to enter the
required credentials to have access for the login dashboard.
Login Page:
This is the Login window where user has to enter the required
credentials to have access for the login dashboard.
Contact Us:
About Us page:
Welcome Page:
This is the Welcome window or main dashboard where user
can access the books and stories. By click on logout button
user can go to login window.
Story Reading Page:
Logout:
Source Code
connection.php,
include("connection.php");
include("functions.php");
if($_SERVER['REQUEST_METHOD'] == "POST")
{
$user_id = random_num(20);
$query = "insert into users (user_id,user_name,password) values
('$user_id','$user_name','$password')";
mysqli_query($con, $query);
header("Location: login.php");
ob_end_flush();
die;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Register</title>
<link rel="stylesheet" href="css/register.css">
</head>
<body>
<nav class="flex">
<div class="logo">DGT-Stories</div>
<ul>
<li><a href="home.php">Home</a></li>
<li><a href="contact.php">Contact Us</a></li>
<li><a href="#">About Us</a></li>
</ul>
</nav>
<div class="username">
<input type="text" placeholder="username" name="user_name">
</div>
<div class="password">
<input type="password" placeholder="password" id="inputpassword"
name="password">
</div>
<div class="bttn">
<button class="register-btn" type="submit" value="register" >Register</button>
</div>
</div>
</form>
</body>
</html>
if($_SERVER['REQUEST_METHOD'] == "POST")
{
// something was posted
$user_name = $_POST['user_name'];
$password = $_POST['password'];
if($result)
{
if($result && mysqli_num_rows($result) > 0)
{
$user_data = mysqli_fetch_assoc($result);
if($user_data['password'] == $password)
{
$_SESSION['user_id'] = $user_data['user_id'];
header("Location: welcome.php");
ob_end_flush();
die;
}
}
}
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login</title>
<link rel="stylesheet" href="css/login.css">
</head>
<body>
<nav class="flex">
<div class="logo">DGT-Stories</div>
<ul>
<li><a href="home.php">Home</a></li>
<li><a href="contact.php">Contact Us</a></li>
<li><a href="#">About Us</a></li>
</ul>
</nav>
<form action="" method="post">
<div class="card">
<div class="username">
<h1 class="head">Log-in</h1>
<input type="text" placeholder="Username" name="user_name">
</div>
<div class="password">
<input type="password" placeholder="Password" name="password">
</div>
<div class="bttn">
<button class="login-btn" type="submit" value="login" >Login</button>
</div>
<div class="register">Not a memeber?<a href="register.php">Register</a></div>
</div>
</form>
</body>
</html>
</div>
<div class="box1 box">
<div class="box-img"><img src="img/ghost.jpg"></div>
<a class="btn" href="story.php">Click here to read it</a>
</div>
</div>
<div class="item-section">
<div class="box1 box">
<div class="box-img"><img src="img/adventure.jpeg"></div>
<a class="btn" href="story.php">Click here to read it</a>
</div>
<div class="box1 box">
<div class="box-img"><img src="img/fantasy.jpg"></div>
functions.php:
<?php
function check_login($con)
{
if(isset($_SESSION['user_id']))
{
$id = $_SESSION['user_id'];
$query = "select * from users where user_id = '$id' limit 1";
$result = mysqli_query($con,$query);
if($result && mysqli_num_rows($result) > 0)
{
$user_data = mysqli_fetch_assoc($result);
return $user_data;
}
}
// redirect to login
header("Location: login.php");
die;
}
function random_num($length)
{
$text = "";
if($length < 5)
{
$length = 5;
}
$len = rand(4,$length);
for ($i=0; $i < $len; $i++) {
#code...
$text .= rand(0,9);
}
return $text;
}
?>
Advantages:
➢ Covering an in-depth topic
➢ Cost-effectiveness
➢ Generating leads
➢ Easy to update
➢ Reaching a global audience
➢ Providing a level of professionalism
➢ Being environmentally friendly
➢ Differential pricing
➢ Schools and corporate organizations are increasingly moving
towards eBooks for training purposes because eBooks are better
equipped to provide an engaging learning and reading
experience to users.
➢ There are and will be people who support printed books as well
as electronic books or eBooks. With the rising number of tech-
savvy people, every service provider is digitizing their services
so as to cater to this large community of digital users.
➢ E-books are portable and lightweight, making it easy to carry
around. Instead of carrying multiple bulky books, one eBook
reader can hold thousands of eBooks. It saves a lot of space- in
your home and in your bag. One doesn’t have to worry about the
storage limit.
Future Scope:
➢ In modern world and with increasing technology, this project is
going to prove to be much better, especially for those who have
a profession of writing. With help of internet and social media
author can easily approach users of his/her creation and in less
time the author has more opportunity to make famous his
creation.
➢ This project will also help in business, companies can provide
their magazines, books and other material to the employees.
➢ In future we can make it better by adding some kind of audios
and animated videos for those who are not interested in reading.
➢ If someone wants a website on which he or she can upload their
creations then our website will provide that platform.
➢ We can also use this website as a shopping website of books by
using it users can buying books if someone wants to sell them
for their own profit or a kind of business.
➢ Many people especially students have not time or money in their
student life and it is not possible that they can buy each and
every book which they want to read, our website will provide
them this facility so that they can read many books and it will
help them to gain knowledge and save their time which they can
spend in other places.
Conclusion:
This study examines the preference for e-books and print books in the
contexts of reading purpose, reading situation, and contextual variables
such as age, gender, education level, race/ethnicity, income,
community type, and Internet use. Additionally, this study aims to
identify factors that contribute to e-book adoption. The results of this
study support the notion that e-books have firmly established a place in
people's lives, but are not yet positioned to take over all the roles of
print books. Both print books and e-books have unique attributes and
serve irreplaceable functions in meeting people's reading needs, which
may vary by individual demographic, contextual, and situational
factors.
Bibliography:
Platforms:
➢ www.google.com
➢ www.w3schools.com
➢ Youtube (different accounts)