Skip to content

Commit 01c4ef1

Browse files
committed
update
1 parent 0db8043 commit 01c4ef1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

index.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
</div>
8484
</nav>
8585
<!-- <div class="w-75 p-2" style="background-color: #eee;margin: auto;"> -->
86-
<main>
86+
<main class="table-responsive">
8787
<?php
8888
if (isset($_SESSION["error"])) {
8989
echo ('<p class="text-danger">' . htmlentities($_SESSION["error"]) . "</p>");
@@ -97,7 +97,7 @@
9797
if (isset($_SESSION['user_id'])) {
9898
echo 'User ID ' . $_SESSION['user_id'];
9999
echo '
100-
<table class="table table-light table-hover">
100+
<table class="table table-light table-bordered table-hover">
101101
<thead class="thead-dark">
102102
<tr>
103103
<th scope="col" style="background-color: #eee;">#</th>
@@ -149,7 +149,8 @@
149149
$diff = "<p class=' text-success'>Online</p>";
150150
}
151151
}
152-
echo "<tr><th scope='row'>";
152+
echo ($_SESSION['user_id'] == $account['user_id']) ? "<tr class='table-success'>" : "<tr>";
153+
echo "<th scope='row'>";
153154
echo ($account['user_id']);
154155
echo $pfp;
155156
echo ("</th><td>");

pdo.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
session_start();
33
ob_start();
44
ini_set('display_errors', 0);
5-
5+
/*
66
$HOST = 'sql12.freemysqlhosting.net';
77
$PORT = 3306;
88
$DB_NAME = 'sql12561191';
@@ -14,8 +14,8 @@
1414
$DB_PASSWORD
1515
);
1616
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
17+
*/
1718

18-
/*
1919
$HOST = 'localhost';
2020
$PORT = 3306;
2121
$DB_NAME = 'g4o2-chat';
@@ -27,4 +27,3 @@
2727
$DB_PASSWORD
2828
);
2929
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
30-
*/

0 commit comments

Comments
 (0)