Professional Documents
Culture Documents
Chat Management System
Chat Management System
CHAPTER 1
INTRODUCTION
1.2HISTORY
The two-main early navigational data models were the hierarchical model, epitomized
by IBM's IMS system and the CODASYL model (network model), implemented in a
number of products such as IDMS.
The relational model, first proposed in 1970 by Edgar F. Codd, departed from this tradition
by insisting that applications should search for data by content, rather than by following
links. The relational model employs set of ledger -style tables, each used for a different type
of entity. Only in the mid -1980 s did computing hardware become powerful enough to
allow the wide deployment of relational systems (DBMSs plus applications)
By the early 1990s, however, relational systems dominated in all large -scale data
processing applications, and as of 2015 they remain dominant: IBM DB2, Oracle, MySQL,
and Microsoft SQL Server are the top DBMS. The dominant database language,
standardized SQL for the relational model, has influenced database languages for other data
models.
The next generation of post-relational databases in the late 2000 s became known as
NoSQL databases, introducing fast key-value stores and document -oriented databases. A
competing "next generation” known as NoSQL databases attempted new implementations
that retained the relational /SQL model while aiming to match the high performance of
NoSQL compared to commercially available relational DBMS.
1.3 OBJECTIVES
CHAPTER 2
CHAPTER 3
Entity Attribute
Primary Relationship
Key Type
1 N
Cardinality ratio
DESCRIPTION
The ER Model figure shows the proposed system. It 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. So, let’s see each
entity in details:
CHAT
This entity stores the information about the chats or messages of different users.
CHATROOM
This entity stores the information about the details of various chatrooms which have been
created in this system. This stores details about both public and private chatrooms..
CHAT MEMBER
This entity stores the information about the details of chat_memberid, userid, chatroom
id about its user.
CONTACT
This entity stores the email and feedback by the logged in person.
USER
This stores information about the different users who have logged in once to the chat
system.This entity stores information about chat_memberid, userid, chatroom id about
its user.
Choose one of the relations—S, say—and include as a foreign key in S the primary key of
T. It is better to choose an entity type with total participation in R in the role of S. Include
all the simple attributes (or simple components of composite attributes) of the 1:1
relationship type R as attributes of S.
For each binary M:N relationship type R, create a new relation S to represent R. Include as
foreign key attributes in S the primary keys of the relations that represent the participating
entity types; their combination will form the primary key of S. Also include any simple
attributes of the M:N relationship type (or simple components of composite attributes) as
attributes of S.
Notice that we cannot represent an M:N relationship type by a single foreign key attribute in
one of the participating relations (as we did for 1:1 or 1:N relationship types) because of the
M:N cardinality ratio; we must create a separate relationship relation S.
CHAPTER 4
IMPLEMENTATION
CODE:
<?php
include('session.php');
if(isset($_POST['adduser'])){
$name=$_POST['name'];
$username=$_POST['username'];
$password=md5($_POST['password']);
$access=$_POST['access'];
?>
<?php
include('session.php');
if (isset($_POST['chatname'])){
$cid="";
$chat_name=$_POST['chatname'];
$chat_password=$_POST['chatpass'];
echo $cid;
}
?>
4.3 CODE FOR INSERTING MEMBER:
<?php
include('session.php');
if (isset($_POST['id'])){
$id=$_POST['id'];
if (mysqli_num_rows($query)<1){
mysqli_query($conn,"insert into
chat_member (chatroomid, userid) values ('$id', '".$_SESSION['id']."')");
}
}
?>
<?php
include('../conn.php');
if (isset($_POST['del'])){
$id=$_POST['id'];
<?php
include('session.php');
if(isset($_POST['del'])){
$id=$_POST['id'];
?>
CHAPTER 5
SNAPSHOTS
TABLES:5.1
FIGURES:5.2
This fig.5.2.1 describes about the Login page.User can login through given username and
password.
F
ig.5.2.4 Chatroom addition
This fig.5.2.4 shows the addition of private chat room.User can add new private chat room by
adding new chatroom name and password.