File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 83
83
</div>
84
84
</nav>
85
85
<!-- <div class="w-75 p-2" style="background-color: #eee;margin: auto;"> -->
86
- <main>
86
+ <main class="table-responsive" >
87
87
<?php
88
88
if (isset ($ _SESSION ["error " ])) {
89
89
echo ('<p class="text-danger"> ' . htmlentities ($ _SESSION ["error " ]) . "</p> " );
97
97
if (isset ($ _SESSION ['user_id ' ])) {
98
98
echo 'User ID ' . $ _SESSION ['user_id ' ];
99
99
echo '
100
- <table class="table table-light table-hover">
100
+ <table class="table table-light table-bordered table- hover">
101
101
<thead class="thead-dark">
102
102
<tr>
103
103
<th scope="col" style="background-color: #eee;">#</th>
149
149
$ diff = "<p class=' text-success'>Online</p> " ;
150
150
}
151
151
}
152
- echo "<tr><th scope='row'> " ;
152
+ echo ($ _SESSION ['user_id ' ] == $ account ['user_id ' ]) ? "<tr class='table-success'> " : "<tr> " ;
153
+ echo "<th scope='row'> " ;
153
154
echo ($ account ['user_id ' ]);
154
155
echo $ pfp ;
155
156
echo ("</th><td> " );
Original file line number Diff line number Diff line change 2
2
session_start ();
3
3
ob_start ();
4
4
ini_set ('display_errors ' , 0 );
5
-
5
+ /*
6
6
$HOST = 'sql12.freemysqlhosting.net';
7
7
$PORT = 3306;
8
8
$DB_NAME = 'sql12561191';
14
14
$DB_PASSWORD
15
15
);
16
16
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
17
+ */
17
18
18
- /*
19
19
$ HOST = 'localhost ' ;
20
20
$ PORT = 3306 ;
21
21
$ DB_NAME = 'g4o2-chat ' ;
27
27
$ DB_PASSWORD
28
28
);
29
29
$ pdo ->setAttribute (PDO ::ATTR_ERRMODE , PDO ::ERRMODE_EXCEPTION );
30
- */
You can’t perform that action at this time.
0 commit comments