Skip to content
Snippets Groups Projects
Commit 12ea6b3d authored by Suriya Ravichandran's avatar Suriya Ravichandran
Browse files

update

parent 621e34bc
No related branches found
No related tags found
No related merge requests found
<?php
session_start();
if(isset($_SESSION['unique_id'])){
header("location: users.php");
}
?>
<?php include_once "php/headers/index_header.php";?>
<body>
<div class="wrapper">
......
......@@ -22,11 +22,12 @@ if (isset($_SESSION['unique_id'])) {
if ($row['outgoing_msg_id'] === $outgoing_id) {
$output .= '<div class="chat-outgoing">
<div class="details">
<p>' . $decrypted_message . '</p>
</div>
</div>';
} else {
<div class="details">
<p>' . $decrypted_message . '</p>
</div>
</div>';
}
else {
// he is a message receiver
$output .= '<div class="chat-incoming">
<img src="php/images/' . $row['img'] . '" alt="">
......
php/images/1707024574kathikeyan.jpg

574 KiB

......@@ -98,6 +98,7 @@ header .details p {
border-radius: 8px;
}
/* Style incoming messages */
.chat-incoming {
display: block;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment