0% found this document useful (0 votes)
71 views

E Book webSITE PROJECT fILE

The document describes a major project report on developing an e-book website. It outlines the introduction, modules, objectives, requirements, system design including use case diagram, ER diagram and DFD, database design, implementation, testing, results and future scope of the project.

Uploaded by

Akash Baghel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views

E Book webSITE PROJECT fILE

The document describes a major project report on developing an e-book website. It outlines the introduction, modules, objectives, requirements, system design including use case diagram, ER diagram and DFD, database design, implementation, testing, results and future scope of the project.

Uploaded by

Akash Baghel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 47

MAJOR PROJECT REPORT

On

E-BOOK WEBSITE

SUBMITTED IN PARTIAL FULFILMENT OF THE


REQUIREMENTS FOR THE AWARD OF THE DEGREE
OF

BACHELOR OF COMPUTER APPLICATIONS


Session:2020-2023

SUBMITTED BY: SUBMITTED TO:

TANUJ KUMAR Mr. AMAN TYAGI


(2003925011066) (Professor)

DEPARTMENT OF COMPUTER SCIENCE


UTTAM INSTITUTE OF TECHNOLOGY & MANAGEMENT
AGRA, 282005
CERTIFICATE

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.

Mr. Aman Tyagi

(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

Roll no: 2003925011066


ACKNOWLEDGMENT
I have taken efforts in this project. However, it would not have been possible
without the kind support and help of my faculty members and friends. I would
like to extend my sincere thanks to all of them.

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.

I would like to express my gratitude towards my parents & member of Uttam


Institute of Technology and Management, Agra for their kind co-operation and
encouragement which help me in completion of this project.

I am thankful to and fortunate enough to get constant encouragement, support and


guidance from all Teaching staffs of Department of Computer Science which
helped us in successfully completing our project work.

………………….

(Signature)

Tanuj Kumar

Roll no: 2003925011066


ABSTRACT
This major project examines the genesis of e-books. The situational analysis with
respect to different aspects related to business organizations’ involvement in the
industry authentic published information is studied with the help of secondary
data. Questions such as who is reading e-books, why they are reading them, and
where they are reading are analyses and insights documented. A set of
conclusions are provided on the nature of market for the future of e-books is
given.

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.1 Admin Usecase Diagram


1.2 User Usecase Diagram

1.3 ER Diagram

1.4 Symbol for Data Flow Diagram

1.5 Zero Level DFD

1.6 First level


1.7 Admin Second Level DFD

1.8 User Second Level DFD


TABLE OF CONTENT
Chapters Page No

1: Introduction 01

1.1. Introduction

1.2. Module

1.3. Objective

2: Requirement Specification 02

2.1. Hardware Configuration

2.2. Software Configuration

3: System Design 04

3.1. Design Introduction

3.1.1. Use Case Diagram

3.1.2. ER Diagram

3.1.3. Data Flow Diagram

4: Database Design 09
4.1. MySQL Data Tables (Database Table)

4.2. Admin Table

4.3. User Entries Table


5: Implementation, Maintenance and System Testing 10

5.1. Implementation

5.2. Maintenance

5.3. System Testing

6: Result 11

6.1. Home Page


6.2. Contact Us

6.3. Registration Page

6.4. Login Page

6.5. Welcome Page

6.6. Story Reading Page

7: Future Scope of Project 13

8: Conclusion 14

9: Bibliography 15
INTRODUCTION OF PROJECT

WEBSITE OF ONLINE STORIES/ BOOKS:


• In today’s modern world, internet has reached almost everywhere, people
are using platforms like social media, internet browsers to find everything
necessary regarding their daily life, working, education and entertainment
purposes. In such a situation, “E-Books and Digital Story-Telling” will
prove to be effective for their knowledge and entertainment purposes.
• Our website will provide an effective platform through which people can
read books online instead of buying physical copies or going to any shop
and they can save their time as well.
• The best digital stories take advantage of the power of modern web
browsers, featuring high-resolution media, beautifully rendered text, and
scroll-based animation — creating an immersive and highly engaging
reading experience. In the years following, a range of companies began to
produce platforms and tools for digital storytelling. Media companies
were among the first to get on board.
• Scrolling is an umbrella term for stories with animation effects triggered
by simply scrolling the page. Scrolling takes advantage of the power of
modern web browsers to create impressive visual effects, including the
animation and blending of full-screen images.

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:

1. Home: It is a welcome page(Main page) for users.

2. Story Reading Page: Here user can read stories.

Objective Of The Project:


• This use of digital storytelling capitalizes on the creative talents of
students as they begin to research and tell stories of their own, learn to
use the library and the internet to research rich, deep content while
analyzing and synthesizing a wide range of information and opinions.
• Authors are getting more opportunities now a days through self-
publishing model of e-books on various platforms. Our website is one of
them.
• India has highest young consumer of Internet and smart devices, such
generation prefer e-books over books. So get ready and start publishing if
you have your content ready.
Tools/Platform Used & Language To Be Used

For the undergoing project, following tools are used:

Software Specification:

1. Platform Windows

2. Operating System Windows 10


3. Front-End Tool Html & Css
4. Back-End Tool Php
5. Editing Tool Microsoft Visual Studio
6. Testing Tool Xampp

Hardware Specification:

1. Processor AMD Ryzen 3, 2.60 GHz

2. Hard Disk 1 TB
3. Memory (RAM) 12 GB
Server Side:

Web Server APACHE

Server Side Language PHP 5.6

Database Server MYSQL

Microsoft Edge or any


Web Browser
compatible browser

Windows or any equivalent


Operating System
OS
System Design:
Design Introduction:

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.

Use Case Diagram:

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.

Additionally, the diagram consists of processes (use cases) and users or


“actors”. It uses defined symbols to describe the overall workflow of the login
and registration.

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.

Moreover, the diagram assists you in defining and organizing project


requirements. This also provides a clear picture of the user and system
relationships. Therefore, this diagram depicts the high-level functionality of a
system including how the user interacts with it.
• The purpose is to show the interactions between the use case and actor.

• To represent the system requirements from user’s perspective.

• An actor could be the end-user of the system or an external system.

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.

Uses of entity relationship diagrams:

• In software engineering, an ER diagram is often an initial step in


determining requirements for an information systems project. It’s also later
used to model a particular database or databases. A relational database has
an equivalent relational table and can potentially be expressed that way as
needed.
• ER diagrams are used to analyze existing databases to find and resolve
problems in logic or deployment. Drawing the diagram should reveal
where it’s going wrong.
• The diagrams are used to design or analyze relational databases used in
business processes. Any business process that uses fielded data involving
entities, actions and interplay can potentially benefit from a relational
database. It can streamline processes, uncover information more easily and
improve results.
• ER diagrams help in analyzing databases used in business process re-
engineering and in modeling a new database setup.
• Databases are today’s method of storing relational information for
educational purposes and later retrieval, so ER Diagrams can be valuable
in planning those data structures.
• Research: Since so much research focuses on structured data, ER diagrams
can play a key role in setting up useful databases to analyze the data.
Login_user
user_id name

User Has login

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

• What data is system processes.


• What transformation are performed.
• What data are stored.
• What results are produced, etc.

= 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.

External Entity: Source or Sink is an external entity and acts as a source of


system inputs or sink of system outputs.

Zero Level DFD:


It is also known as a context diagram. It’s designed to be an abstraction view,
showing the system as a single process with its relationship to external entities.
It represents the entire system as a single bubble with input and output data
indicated by incoming/outgoing arrows.

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.

Registration Website page


Management Management

User
Login E-book Management
Management Website

Password Admin
Management Management

Fig-1.6

Second Level DFD:


2-level DFD goes one step deeper into parts of 1-level DFD. It can be used to
plan or record the specific/necessary detail about the system’s functioning.
Admin Login to
Home Page
system

Check
Credential
s
Manage
Stories

Check
Roles of
access

Add/Delete
User’s Data
Manage
Modules

Update Profile Manage


website pages

Fig 1.7 (Admin)


Visit View Home
User Website Page

View Contact Us
Check
page
Credentials
s

View About Us
Check
page
Role Of
Access

View Welcome
Manage page

Module

View Story page

Fig 1.8 (User)


Database Design:
MySQL Data Tables (Database Table):
Admin Table:

User Entries Table:


Implementation, Maintenance and System Testing:
Implementation:

The implementation process resembles software development because it


involves using a specific syntax for encoding web structures or a programming
language in a formal language in computer files. Although there are automated
tools to help with the construction of HTML documents, a thorough grounding
in HTML enriches the web implementor's expertise.

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.

Main topics of such type of website are:

• How to enter the data


• How to process the data
• How to take out the output

Maintenance:

Maintenance is necessary to eliminate errors in the system during its working


life and to tune the system to any variations in its working environment. It has
been seen that there are always some errors found in the system that must be
noted and corrected it also means the review of the system from time to time.

The review of the website is done for:

• Knowing the full capabilities of the website


• Knowing the required changes or the additional requirements
• Studying the performance
Testing:
Before actually implementing the new system into operations, a test run of the
system is done removing all the bugs, if any. It is an important phase of a
successful system. After codifying the whole programs of the system, a test plan
should be developed and run on a given set of test data. The output of the test
run should match the expected results.

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

Login If user already Grant access Grant access


exists, transfer to Test
TC2 Username & to the to the
the welcome page Successful
Password welcome page welcome page
If story exists, user
Click on story will go to the story Grant access Grant access Test
TC3
button reading page to the story to the story Successful

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.

Other characteristics of PHP are as follows.

➢ Simple and fast


➢ Efficient
➢ Secured
➢ Flexible
➢ Cross-platform, it works with major operating systems like Windows,
Linux, and macOS.
➢ Open Source
➢ Powerful Library Support
➢ Database Connectivity
About Html & Css:
HTML: HTML stands for Hyper Text Markup Language and it is the
language that is used to define the structure of a web page. HTML is used along
with CSS and Javascript to design web pages. HTML is the basic building block
of a website. It has different attributes and elements with different properties.
Each element has an opening and a closing tag. We can also add images with
the help of HTML.

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

• MYSQL is ideal for both small and large


applications
• MYSQL supports standard SQL
• MYSQL compiles on a number of

platforms

• MYSQL is free to download and use


Results

Table Of Figures:

Figure No. Caption Of The Figure


1. Home Page
2. Registration Page
3. Login Page
4. Welcome Page (Main Dashboard)
5. Story Reading Page

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

Files: home.php, register.php, login.php, logout.php, welcome.php

connection.php,

Home Page Code:


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DGT-Stories</title>
<link rel="stylesheet" href="css/style.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Roboto&family=Ubuntu+Condensed&di
splay=swap" rel="stylesheet">
</head>
<body>
<nav class="flex">
<div class="logo">DGT-Stories</div>
<ul>
<li><a href="#">Home</a></li>
<li><a href="contact.php">Contact Us</a></li>
<li><a href="#">About Us</a></li>
</ul>
<div class="sub-btn">
<a class="register-btn" href="register.php">Register</a>
<a class="login-btn" href="login.php">login</a>
</div>
</nav>
<div class="box">
<h1>Welcome to DGT-Stories</h1>
<h2>A Platform Of Interisting Stories</h2>
</div>
</body>
</html>

Register Page Code:


<?php
ob_start();
session_start();

include("connection.php");
include("functions.php");

if($_SERVER['REQUEST_METHOD'] == "POST")
{

// something was posted


$user_name = $_POST['user_name'];
$password = $_POST['password'];

if(!empty($user_name) && !empty($password) && !is_numeric($user_name))


{
// save to database

$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>

<form action="" method="post">


<div class="card">
<h1>Register</h1>

<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 class="register">Already registered?<a href="login.php">login</a></div>

</div>
</form>
</body>
</html>

Login Page Code:


<?php
ob_start();
session_start();
include("connection.php");
include("functions.php");

if($_SERVER['REQUEST_METHOD'] == "POST")
{
// something was posted
$user_name = $_POST['user_name'];
$password = $_POST['password'];

if(!empty($user_name) && !empty($password) && !is_numeric($user_name))


{
//read from the database
$query = "select * from users where user_name = '$user_name' limit 1";
$result = mysqli_query($con, $query);

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>

Main Page Code:


<?php
session_start();
include("connection.php");
include("functions.php");
$user_data = check_login($con);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DGT-Stories</title>
<link rel="stylesheet" href="css/welcome.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Roboto&family=Ubuntu+Condensed&displa
y=swap" rel="stylesheet">
</head>
<body>
<nav class="flex">
<div class="logo">DGT-Stories</div>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Contact Us</a></li>
<li><a href="#">About Us</a></li>
</ul>
<div class="logout-btn">
<a href="logout.php">Logout</a>
</div>
</nav>
<div class="container">
<h1>Welcome <?php echo $user_data['user_name']; ?><h1>
<h2>Now You Can Enjoy Our Stories<h2>
</div>
<div class="item-section-start">
<div class="box1 box">
<div class="box-img"><img src="img/househorror.jpg"></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/horror2.jpg"></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/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>

<a class="btn" href="story.php">Click here to read it</a>


</div>
<div class="box1 box">
<div class="box-img"><img src="img/fantasy2.jpg"></div>
<a class="btn" href="story.php">Click here to read it</a>
</div>
</div>
<div class="item-section-last">
<div class="box1 box">
<div class="box-img"><img src="img/magic.jpg"></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/love.jpg"></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/harrypotter.jpg"></div>


<a class="btn" href="story.php">Click here to read it</a>
</div>
</div>
<div class="item-section-last">
<div class="box1 box">
<div class="box-img"><img src="img/army.jpg"></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/tenali.jpg"></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/hanuman.jpg"></div>
<a class="btn" href="story.php">Click here to read it</a>
</div>
</div>
<footer>
<p class="text-footer"> Copyright &copy; 2023 www.dgt stories.com - All right
reserved</p>
</footer>
</body>
</html>

Some Other File’s Code:


concetion.php:
<?php
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";
$dbname = "login_sample_db";
if(!$con = mysqli_connect($dbhost,$dbuser,$dbpass,$dbname))
{
die("failed to connect!");
}
?>

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:

We have consulted various youtube channels and websites for the


development of the project and preparing the document

Platforms:

➢ www.google.com
➢ www.w3schools.com
➢ Youtube (different accounts)

You might also like