Project Report Dbms
Project Report Dbms
Chapter 1
Now-a-days we live in age of Information Communication and Technology (ICT). We can’t think a
single moment without technology. From morning to night, we need help of the technology. This is
the revolutionary time of computer technology. Most of the works depends on web application. For
this reason, anytime, anywhere, anyone can access a website by internet at low cost and we can
find our expectable and most update information from website. At present information is one the
most valuable resource of the current world. We have developed our project so that we can aware
the people.
The online news portal has been developed to override the problems prevailing in the practicing
manual system. The main purpose of the project is intended to develop a portal for management of
Web based news. The portal provides a suitable and easy display for which large population around
the world can learn or will have the knowledge about the world. No formal knowledge is needed to
The portal has basically two user parts where one is user who can view, add comment, can have
subscribe the newsletters or games and another is administrator who will manage or control the
website and other user can only view ,search and can add comments if name and email is given, but
The website consists of basic pages from which the user can view and know the relevant
information according to various categories which administrator given. In other case, the
administrator manages all the relevant actions for which the users can view properly and also make
reports.
1.2 OBJECTIVES
The objective of this project is to develop a web application for Online News Paper website
Those people who don’t have time to read the news paper and always linked with internet
Anytime, anywhere, anyone can know about the news or information by internet at low
cost.
Once a news item is put on the internet, it becomes instantly available for use round the
Chapter 2
SYSTEM REQUIREMENTS
Database : MySql
2.3.1 MYSQL
MySQL is a fast, easy-to-use RDBMS being used for many small and big businesses. MySQL is
developed, marketed and supported by MySQL AB, which is a Swedish company. MySQL is
MySQL is released under an open-source license. So you have nothing to pay to use it.
MySQL works on many operating systems and with many languages including PHP, PERL,
MySQL works very quickly and works well even with large data sets.
MySQL is very friendly to PHP, the most appreciated language for web development.
2.3.2 PHP
PHP started out as a small open source project that evolved as more and more people found out
how useful it was. Rasmus Lerdorf unleashed the first version of PHP way back in 1994.
PHP is a server side scripting language that is embedded in HTML. It is used to manage
dynamic content, databases, session tracking, even build entire e-commerce sites.
2.3.3 HTML
HTML tags label pieces of content such as "heading", "paragraph", "table", and so on
Browsers do not display the HTML tags, but use them to render the content of the page
2.3.4 JAVASCRIPT
used as a part of web pages, whose implementations allow client-side script to interact with the user
capabilities.
2.3.5 CSS
CSS handles the look and feel part of a web page. Using CSS, you can control the color of the text,
the style of fonts, the spacing between paragraphs, how columns are sized and laid out, what
background images or colors are used, layout designs, and variations in display for different
CSS is easy to learn and understand but it provides powerful control over the presentation of an
HTML document. Most commonly, CSS is combined with the markup languages HTML or
XHTML.
2.3.6 JQUERY
jQuery is a lightweight, "write less, do more", JavaScript library. The purpose of jQuery is to make
it much easier to use JavaScript on your website. jQuery takes a lot of common tasks that require
many lines of JavaScript code to accomplish, and wraps them into methods that you can call with a
jQuery also simplifies a lot of the complicated things from JavaScript, like AJAX calls and DOM
HTML/DOM manipulation
CSS manipulation
AJAX
Utilities
Chapter 3
SYSTEM ANALYSIS
System analysis is a process of collecting and interpreting facts, identifying the problems,
System analysis is conducted for the purpose of studying a system or its parts in order to
identify its objectives. It is a problem solving technique that improves the system and
ensures that all the components of the system work efficiently to accomplish their purpose.
During analysis , data collected on various files, decision points and transactions handled by
the present system. The commonly used tools are data flow diagram, interviews etc.
Training ,experience and common sense are required for the collection of relevant
information needed to develop the system. The success of the system depends largely on
how clearly the problem is defined , thoroughly investigated and properly carried out
The existing system is fully manual. Each person has to wait for the newspaper to arrive. There is a
payment for each day newspaper. A user will have to spend more time browsing to find the updates
of particular news. This may lead to wastage of time, if the page containing the information is
unknown to the user. The main disadvantage is that there will be lot of difficulties for the user to
By computerizing the news, the administrator can easily add the information, edit or even delete
the information if it is irrelevant. By the admin approval of comment facility , it is even scrutiny of
Less error
Search facility
Quick transaction
Chapter 4
System design is the phase that bridges the gap between problem domain and the existing system in
a manageable way. This phase focuses on the solution domain, i.e. “how to implement?”
It is the phase where the SRS document is converted into a format that can be implemented and
Statement of work
A function hierarchy diagram or web page map that graphically describes the program
structure.
The ER model defines the conceptual view of a database. It works around real-world entities and
the associations among them. At view level, the ER model is considered a good option for
designing databases.
adminId LoginId
adminname
Password Password
Manage
CategoryId
PostId CategoryName
Post Category
PostTitle Description
Has CreatedDate
Description
SubId
CreatedDate Subcategory
Description SubName
Entity :
An entity can be a real-world object, either animate or inanimate, that can be easily identifiable.
For example, in a school database, students, teachers, classes, and courses offered can be
considered as entities. All these entities have some attributes or properties that give them their
identity.
Attributes :
Entities are represented by means of their properties, called attributes. All attributes have values.
For example, a student entity may have name, class, and age as attributes.
There exists a domain or range of values that can be assigned to attributes. For example, a student's
name cannot be a numeric value. It has to be alphabetic. A student's age cannot be negative, etc.
4.2 MODULES
The project is modularized on the basis of users who use this portal.
1. Administrator
2. User
1. Administrator
2. User
A user can signup for a profile if he/she doesn’t have one already
The user can read a particular news in detail by clicking on the news link.
The user has options to search the news based on subcategory or words in the
search box.
The user has the option to get the password if he/she forgets her password.
<?php
session_start();
include('includes/config.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<title>News Portal | Home Page</title>
<!-- Bootstrap core CSS -->
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/modern-business.css" rel="stylesheet">
</head>
<body>
<!-- Navigation -->
<?php include('includes/header.php');?>
<!-- Page Content -->
<div class="container">
<div class="row" style="margin-top: 4%">
<!-- Blog Entries Column -->
<div class="col-md-8">
<!-- Blog Post -->
4.3.2 ADMIN LOGIN
<?php
session_start();
//Database Configuration File
include('includes/config.php');
//error_reporting(0);
if(isset($_POST['login']))
{
// Getting username/ email and password
$uname=$_POST['username'];
$password=$_POST['password'];
// Fetch data from database on the basis of username/email and password
$sql =mysqli_query($con,"SELECT AdminUserName,AdminEmailId,AdminPassword FROM tbladmin
WHERE (AdminUserName='$uname' || AdminEmailId='$uname')");
$num=mysqli_fetch_array($sql);
if($num>0)
{
$hashpassword=$num['AdminPassword']; // Hashed password fething from database
//verifying Password
if (password_verify($password, $hashpassword)) {
$_SESSION['login']=$_POST['username'];
echo "<script type='text/javascript'> document.location = 'dashboard.php'; </script>";
}
Else
{
echo "<script>alert('Wrong Password');</script>";
}
}
//if username or email not found in database
else{
echo "<script>alert('User not registered with us');</script>";
}
}
?>
4.3.1 ADMIN LOGOUT
<?php
session_start();
include("includes/config.php");
$_SESSION['login']=="";
session_unset();
session_destroy();
?>
<script language="javascript">
document.location="index.php";
</script>
<?php
session_start();
include('includes/config.php');
error_reporting(0);
if(strlen($_SESSION['login'])==0)
{
header('location:index.php');
}
else{
CSE Dept Page 14
News Portal 2020-2021
if(isset($_POST['submit']))
{//Current Password hashing
$password=$_POST['password'];
$options = ['cost' => 12];
$hashedpass=$password;
//password_hash($password, PASSWORD_BCRYPT, $options);
$adminid=$_SESSION['login'];
// new password hashing
$newpassword=$_POST['newpassword'];
$newhashedpass=$password;
//password_hash($newpassword, PASSWORD_BCRYPT, $options);
4.3 DATABASE
Chapter 5
SCREENSHOTS
5.4 Dashboard
5.6 Posts
Chapter 6
CONCLUSION
After processing through all phases of the system development life cycle, the news portal is
developed. In future it will be hosted on the internet server which will be accessed by all people in
the world and can view the site and learn as much as news and information about the world. The
Administrator or editor who will be assigned for editing or managing or controlling will be given
the secure login information and will change or modify the website as per the requirements. New
facility can also implemented in this system like online games for registered users, quizzes etc .
Chapter 7
BIBLIOGRAPHY
1. Fundamentals of Software Engineering, and data base management system with pearson
publication edition 2003
2. https://www.tutorialspoint.com/php
3. HTML, and CSS Bible. Bill Karow, Chuck White, Steven M. Schafer Bryan Pfaffenberger, New
York: Wiley 2004
4. http://en.wikipedia.org/wiki/Software_engineering
5. http://www.w3schools.com/html/html_intro.asp